--- /dev/null
+Index: netris-0.52/inet.c
+===================================================================
+--- netris-0.52.orig/inet.c
++++ netris-0.52/inet.c
+@@ -42,6 +42,8 @@ static int isServer, lostConn, gotEndCon
+
+ ExtFunc void InitNet(void)
+ {
++ lostConn = 0;
++ gotEndConn = 0;
+ AtExit(CloseNet);
+ }
+