mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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
|
too slowly, so read only a few times from the socket before
|
||||||
letting other tasks to run. */
|
letting other tasks to run. */
|
||||||
count = 0;
|
count = 0;
|
||||||
|
ret = 0;
|
||||||
server_ref(server);
|
server_ref(server);
|
||||||
while (!server->disconnected &&
|
while (!server->disconnected &&
|
||||||
(ret = net_sendbuffer_receive_line(server->handle, &str, count < MAX_SOCKET_READS)) > 0) {
|
(ret = net_sendbuffer_receive_line(server->handle, &str, count < MAX_SOCKET_READS)) > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user