]> jfr.im git - irc/ircd-hybrid/libopm.git/commitdiff
Fix for timeouts. Only timeout a socket if it's not unestablished!
authorstrtok <redacted>
Mon, 9 Sep 2002 18:48:27 +0000 (18:48 +0000)
committerstrtok <redacted>
Mon, 9 Sep 2002 18:48:27 +0000 (18:48 +0000)
src/libopm.c

index 800049ac21e7925dbe16ac1c10a9573ac0f17ff3..38c2b7a636a31d869c15157d321e966a56323241 100644 (file)
@@ -567,7 +567,8 @@ void check_closed(OPM_T *scanner)
             node_free(node2);
          }
 
-         if((present - conn->creation) > timeout)
+         if(((present - conn->creation) > timeout) && 
+              conn->state != OPM_STATE_UNESTABLISHED)
          {
 
             close(conn->fd);