diff options
Diffstat (limited to 'plugins/mbm.c')
-rw-r--r-- | plugins/mbm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c index dca9bd82..38583ac9 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -91,6 +91,11 @@ static void mbm_remove(struct ofono_modem *modem) DBG("%p", modem); + if (data->reopen_source > 0) { + g_source_remove(data->reopen_source); + data->reopen_source = 0; + } + ofono_modem_set_data(modem, NULL); g_at_chat_unref(data->data_port); |