diff options
Diffstat (limited to 'net/ax25/ax25_subr.c')
-rw-r--r-- | net/ax25/ax25_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ax25/ax25_subr.c b/net/ax25/ax25_subr.c index 3b78e8473a01..655a7d4c96e1 100644 --- a/net/ax25/ax25_subr.c +++ b/net/ax25/ax25_subr.c | |||
@@ -264,7 +264,8 @@ void ax25_disconnect(ax25_cb *ax25, int reason) | |||
264 | { | 264 | { |
265 | ax25_clear_queues(ax25); | 265 | ax25_clear_queues(ax25); |
266 | 266 | ||
267 | ax25_stop_heartbeat(ax25); | 267 | if (!sock_flag(ax25->sk, SOCK_DESTROY)) |
268 | ax25_stop_heartbeat(ax25); | ||
268 | ax25_stop_t1timer(ax25); | 269 | ax25_stop_t1timer(ax25); |
269 | ax25_stop_t2timer(ax25); | 270 | ax25_stop_t2timer(ax25); |
270 | ax25_stop_t3timer(ax25); | 271 | ax25_stop_t3timer(ax25); |