Commit 63685d6
committed
util/ssh: stop keepalive in disconnect() when existing connection is used
SSHConnection does not open a new connection if an existing connection
is open. It reuses the connection and starts a keepalive command (cat).
On disconnect(), the keepalive command is only stopped for newly
initiated connections, not for existing ones. Fix that by stopping the
keepalive first, unconditionally.
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent 4fd7caf commit 63685d6
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
524 | 526 | | |
525 | 527 | | |
526 | | - | |
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| |||
0 commit comments