mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Ensure variable is initialized.
Make sure not to set connection_lost if the server was already disconnected. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5030 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
66b223c49b
commit
5f05c7ca7a
@ -371,6 +371,7 @@ static void irc_parse_incoming(SERVER_REC *server)
|
||||
too slowly, so read only a few times from the socket before
|
||||
letting other tasks to run. */
|
||||
count = 0;
|
||||
ret = 0;
|
||||
server_ref(server);
|
||||
while (!server->disconnected &&
|
||||
(ret = net_sendbuffer_receive_line(server->handle, &str, count < MAX_SOCKET_READS)) > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user