mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02: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
1 changed files with 4 additions and 2 deletions
|
|
@ -257,8 +257,10 @@ static void session_restore_server(CONFIG_NODE *node)
|
|||
return;
|
||||
|
||||
proto = chat_protocol_find(chat_type);
|
||||
if (proto == NULL || proto->not_initialized)
|
||||
if (proto == NULL || proto->not_initialized) {
|
||||
if (handle < 0) close(handle);
|
||||
return;
|
||||
}
|
||||
|
||||
conn = server_create_conn(proto->id, address, port,
|
||||
chatnet, password, nick);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue