X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fcommand_reply.c;h=0e952e9fff8068c9768a5d8854bc78c2ee1ba9c4;hb=77336860c5d419c9d25a6366de0269c0edb38889;hp=ea1f74b0f2cd98e8da17d5759e04a0b2e046f366;hpb=5e8e3a77c70f10a29e78aa645366c84564b8bc7d;p=silc.git diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index ea1f74b0..0e952e9f 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -195,6 +195,12 @@ SILC_FSM_STATE(silc_client_command_reply_timeout) SilcClientConnection conn = cmd->conn; SilcArgumentPayload args = NULL; + if (conn->internal->disconnected) { + SILC_LOG_DEBUG(("Command %s canceled", silc_get_command_name(cmd->cmd))); + silc_list_del(conn->internal->pending_commands, cmd); + return SILC_FSM_FINISH; + } + SILC_LOG_DEBUG(("Command %s timeout", silc_get_command_name(cmd->cmd))); /* Timeout, reply not received in timely fashion */