about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2005-09-05 09:10:08 +0000
committerFlorian Westphal <fw@strlen.de>2005-09-05 09:10:08 +0000
commit468a1c7767701efb39e8b9e523488fdb7c5eb31d (patch)
treeca59601576523abda14a5a7c3cf7e41402ee7dfe /src
parentab3ac4e466aad50300e1283713dff9dd0178a92b (diff)
downloadngircd-468a1c7767701efb39e8b9e523488fdb7c5eb31d.tar.gz
ngircd-468a1c7767701efb39e8b9e523488fdb7c5eb31d.zip
Handle_Write(): Report write attempts on closed sockets when in debug mode.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 13dbadec..a60fd8e6 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.178 2005/09/02 17:01:23 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.179 2005/09/05 09:10:08 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -858,11 +858,12 @@ Handle_Write( CONN_ID Idx )
 
 	assert( Idx > NONE );
 	if ( My_Connections[Idx].sock < 0 ) {
-		Log(LOG_WARNING,
+#ifdef DEBUG
+		Log(LOG_DEBUG,
 		    "Handle_Write() on closed socket, connection %d", Idx);
+#endif
 		return false;
 	}
-	assert( My_Connections[Idx].sock > NONE );
 
 #ifdef DEBUG
 	Log(LOG_DEBUG, "Handle_Write() called for connection %d ...", Idx);