Fixed a bug in disconnecting in irssi.
[silc.git] / apps / irssi / src / silc / core / client_ops.c
index 1651b20058013e9760f1e049164e7f39f1f5209f..5c83a211be2e3eb2ffe39a20e626f8074f6d26c4 100644 (file)
@@ -833,7 +833,7 @@ void silc_connect(SilcClient client, SilcClientConnection conn,
 {
   SILC_SERVER_REC *server = conn->context;
 
-  if (!server) {
+  if (!server || server->disconnected) {
     silc_client_close_connection(client, conn);
     return;
   }