Commit 5835ab67 authored by Niels Möller's avatar Niels Möller
Browse files

(ssh_connection_pending_close): Check channel_count, and kill

connection immediately if zero.

Rev: src/connection.c:1.91
parent ebbe358c
......@@ -183,11 +183,10 @@ ssh_connection_pending_close(struct ssh_connection *connection)
/* This method should be called before the last channel is cleaned
up, so that the cleanup code can check the flag and do the right
thing. */
connection->pending_close = 1;
if (!connection->channel_count)
/* Iterates over the active channels. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment