repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 468a1c7767701efb39e8b9e523488fdb7c5eb31d:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 468a1c7767701efb39e8b9e523488fdb7c5eb31d
Author: Florian Westphal 
Date:   Mon Sep 5 09:10:08 2005 +0000

    Handle_Write(): Report write attempts on closed sockets when in debug mode.

diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 13dbadeca11157d96fc75b088fcb248c41950573..
index ..a60fd8e6f92dabae4e04712d5ee41cdf92889678 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 
@@ -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);

-----END OF PAGE-----