Description: Initialize lostConn and gotEndConn static var in InitNet function Index: b/inet.c =================================================================== --- a/inet.c +++ b/inet.c @@ -42,6 +42,8 @@ static int isServer, lostConn, gotEndCon ExtFunc void InitNet(void) { + lostConn = 0; + gotEndConn = 0; AtExit(CloseNet); }