shithub: irc.myr

Download patch

ref: ce659df9bcc2fa571e9e1bb7ff7ed48c3f192b84
parent: 68d69528bd1009b26ef0d01e38f271d22133031a
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 8 09:23:27 EDT 2017

Deal with interrupted poll.

--- a/irc.myr
+++ b/irc.myr
@@ -54,7 +54,9 @@
 		c = curchan(cli)
 		redraw(cli)
 		fd = poll(cli)
-		if fd == std.In
+		if fd < 0
+			continue
+		elif fd == std.In
 			terminput(cli, c)
 		else
 			io(cli, fd)
--