[PATCH 42/65] fix channel reopen

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat, 23 Aug 2014 22:45:34 +0000

Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
---
 ii.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/ii.c b/ii.c
index d178b4c..8d3523c 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -550,10 +550,8 @@ static void
 handle_channels_input(int ircfd, Channel *c) {
 	char buf[BUFSIZ];
 
-	if(c->fd == -1)
-		return;
 	if(read_line(c->fd, buf, sizeof(buf)) == -1) {
-		if(channel_reopen(c))
+		if(!channel_reopen(c))
 			channel_rm(c);
 		return;
 	}
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0043-improve.patch"
Content-Disposition: attachment;
 filename="0043-improve.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST