shithub: irc.myr

Download patch

ref: 2f0a0c2b9baab273e94521dcb58773d43b43ad6a
parent: 1a4d159fa6bf9bf01a7851c28b1a7519ebfb2461
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Feb 23 17:57:23 EST 2018

Try to improve error handling, don't leak fds.

--- a/main.myr
+++ b/main.myr
@@ -52,6 +52,7 @@
 		if s.death == 0 || std.now() - s.death < 60*std.Sec
 			continue
 		;;
+		std.close(s.fd)
 		match std.dial(s.ds)
 		| `std.Ok fd:
 			s.fd = fd
--