diff options
| author | Alexander Barton <alex@barton.de> | 2004-04-25 14:06:11 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2004-04-25 14:06:11 +0000 |
| commit | 1d8da4b5258ee1685d0443a182c6106ceb608a23 (patch) | |
| tree | 59dbcb2609f97e2814be1906879a4019053e1834 /src | |
| parent | 292c7bd4c036fd73c8de074f87239aa8e4fdcb2b (diff) | |
| download | ngircd-1d8da4b5258ee1685d0443a182c6106ceb608a23.tar.gz ngircd-1d8da4b5258ee1685d0443a182c6106ceb608a23.zip | |
Fixed a wrong assert() which could cause the daemon to exit spuriously
when closing down connections.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index c40961c7..d548efc2 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -16,7 +16,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conn.c,v 1.133 2004/03/11 22:16:31 alex Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.134 2004/04/25 14:06:12 alex Exp $"; #include "imp.h" #include <assert.h> @@ -622,7 +622,6 @@ Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ) #endif assert( Idx > NONE ); - assert( My_Connections[Idx].sock > NONE ); /* Is this link already shutting down? */ if( My_Connections[Idx].options & CONN_ISCLOSING ) @@ -632,6 +631,8 @@ Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ) return; } + assert( My_Connections[Idx].sock > NONE ); + /* Mark link as "closing" */ My_Connections[Idx].options |= CONN_ISCLOSING; |