mirror of git://git.sysmocom.de/ofono
huawei: Fix race condition with enable polling
This commit is contained in:
parent
0ac3ccfa9b
commit
8cfab5328c
|
@ -104,6 +104,10 @@ static void huawei_remove(struct ofono_modem *modem)
|
|||
|
||||
ofono_modem_set_data(modem, NULL);
|
||||
|
||||
/* Cleanup after potential enable polling */
|
||||
if (data->sysinfo_poll_source > 0)
|
||||
g_source_remove(data->sysinfo_poll_source);
|
||||
|
||||
/* Cleanup after hot-unplug */
|
||||
g_at_chat_unref(data->pcui);
|
||||
|
||||
|
|
Loading…
Reference in New Issue