mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
server_disconnect() should do nothing if you call it twice, especially it
shouldn't emit the "server disconnected" again. We'll now handle the remaining data coming from server after disconnection. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2290 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f594121100
commit
a72f7244ff
2 changed files with 4 additions and 2 deletions
|
|
@ -334,6 +334,9 @@ void server_disconnect(SERVER_REC *server)
|
|||
|
||||
g_return_if_fail(IS_SERVER(server));
|
||||
|
||||
if (server->disconnected)
|
||||
return;
|
||||
|
||||
if (server->connect_tag != -1) {
|
||||
/* still connecting to server.. */
|
||||
if (server->connect_pid != -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue