mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/UPGRADE: when trying to restore connection to server of which chat
protocol is unknown, close the specified handle. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2148 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9db0c7cc7d
commit
c3429fa50e
@ -257,8 +257,10 @@ static void session_restore_server(CONFIG_NODE *node)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
proto = chat_protocol_find(chat_type);
|
proto = chat_protocol_find(chat_type);
|
||||||
if (proto == NULL || proto->not_initialized)
|
if (proto == NULL || proto->not_initialized) {
|
||||||
|
if (handle < 0) close(handle);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
conn = server_create_conn(proto->id, address, port,
|
conn = server_create_conn(proto->id, address, port,
|
||||||
chatnet, password, nick);
|
chatnet, password, nick);
|
||||||
|
Loading…
Reference in New Issue
Block a user