diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-08-07 20:11:34 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-08-07 20:11:34 -0500 |
commit | 07cca7ab13c253d73866d50062ead10213235443 (patch) | |
tree | 8d72cc44e38a7f1d01ba491c2a5cfa01e09fcfc6 /src | |
parent | 6db2762d7598d2a09ef989345854624d599f4a66 (diff) | |
download | ofono-07cca7ab13c253d73866d50062ead10213235443.tar.bz2 |
Quiet an error if a modem is removed quickly
Diffstat (limited to 'src')
-rw-r--r-- | src/network.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c index b1cc2998..12d6f6ef 100644 --- a/src/network.c +++ b/src/network.c @@ -1424,6 +1424,9 @@ void ofono_network_registration_unregister(struct ofono_modem *modem) { DBusConnection *conn = ofono_dbus_get_connection(); + if (modem->network_registration == NULL) + return; + g_dbus_unregister_interface(conn, modem->path, NETWORK_REGISTRATION_INTERFACE); ofono_modem_remove_interface(modem, NETWORK_REGISTRATION_INTERFACE); |