1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05: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:
Timo Sirainen 2002-04-12 19:41:51 +00:00 committed by cras
parent b1a5d317fa
commit dfed19a3c8

View File

@ -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);
}