diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:26:23 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:26:23 +0200 |
commit | 8cfab5328ce9b297724eeeaa5f79cec58cd4cc98 (patch) | |
tree | 17e70e088e59e06948091e8e1c0c233c29064f69 /plugins/huawei.c | |
parent | 0ac3ccfa9baa46529acbaefc64f7ad88753a9171 (diff) | |
download | ofono-8cfab5328ce9b297724eeeaa5f79cec58cd4cc98.tar.bz2 |
huawei: Fix race condition with enable polling
Diffstat (limited to 'plugins/huawei.c')
-rw-r--r-- | plugins/huawei.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 8afc0f58..c57cbb42 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -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); |