summaryrefslogtreecommitdiff
path: root/src/irc/irc-server.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-12-27 12:50:51 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-12-27 12:50:51 +0000
commitc35f841b589754d1ed9c2f1666a51315665217cc (patch)
treedfe3b240e3189be4f89082e40c875a1b4ed7c719 /src/irc/irc-server.c
parent209fe89d27b8f2790dbf4ac48455dcf79c875e77 (diff)
downloadweechat-c35f841b589754d1ed9c2f1666a51315665217cc.zip
Major bug fixed when socket is closed by server (100% CPU usage fixed)
Diffstat (limited to 'src/irc/irc-server.c')
-rw-r--r--src/irc/irc-server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c
index 59c03bfa8..7ca269351 100644
--- a/src/irc/irc-server.c
+++ b/src/irc/irc-server.c
@@ -588,6 +588,12 @@ server_recv (t_irc_server *server)
server_msgq_add_buffer (server, buffer);
server_msgq_flush ();
}
+ else
+ {
+ gui_printf (server->buffer,
+ _("%s cannot read data from socket, disconnecting from server...\n"));
+ server_disconnect (server);
+ }
}
/*