From 21ac529cdedb0fbf476c1d5d656c221c58a28f91 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sun, 1 Feb 2009 06:51:28 +1100 Subject: [PATCH] Remove watchdog source when resetting modem. The "reset_modem" command eventual sets up the g_source_watchdog without ever stopping the old watchdog. So each call adds another watchdog. So remove the current watchdog when resetting Signed-off-by: NeilBrown --- src/gsm0710muxd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gsm0710muxd.c b/src/gsm0710muxd.c index 6260d24..b11cc39 100644 --- a/src/gsm0710muxd.c +++ b/src/gsm0710muxd.c @@ -687,6 +687,7 @@ static gboolean c_reset_modem(const char* origin) { LOG(LOG_DEBUG, "Enter"); LOG(LOG_INFO, "modem reset"); + g_source_remove(serial.g_source_watchdog); serial.state = MUX_STATE_CLOSING; return TRUE; } -- 2.39.5