mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
window_change_server() : don't change server if it's being disconnected.
fixes a crash with multiple channels being in one windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2667 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b1a5d317fa
commit
dfed19a3c8
@ -160,6 +160,9 @@ void window_set_active(WINDOW_REC *window)
|
||||
|
||||
void window_change_server(WINDOW_REC *window, void *server)
|
||||
{
|
||||
if (server != NULL && SERVER(server)->disconnected)
|
||||
return;
|
||||
|
||||
window->active_server = server;
|
||||
signal_emit("window server changed", 2, window, server);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user