this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(loop): fix stopping and starting of loop

When stopping the loop, we never reset `should_quit` which caused the
program to not read any input if the loop were started again

+2 -1
+2 -1
src/Loop.zig
··· 50 50 }); 51 51 } 52 52 53 - /// stops reading from the tty and returns it to it's initial state 53 + /// stops reading from the tty. 54 54 pub fn stop(self: *Self) void { 55 55 self.should_quit = true; 56 56 // trigger a read ··· 59 59 if (self.thread) |thread| { 60 60 thread.join(); 61 61 self.thread = null; 62 + self.should_quit = false; 62 63 } 63 64 } 64 65