diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-12-03 00:42:59 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-03 00:42:59 -0600 |
commit | bcef5a1dd6af08d1cc7745ed0342252ff4af9ac4 (patch) | |
tree | fa49440931bdb6880e01c018bf27b7cd4e6cbb88 | |
parent | 44848d5a9bb298219cc1bbeb54d83e342545adb4 (diff) | |
download | ofono-bcef5a1dd6af08d1cc7745ed0342252ff4af9ac4.tar.bz2 |
Fix: Exit right away
If no plugin needs to run the eventloop to shutdown cleanly, exit right
away.
-rw-r--r-- | src/modem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c index 39e34983..5d0ea567 100644 --- a/src/modem.c +++ b/src/modem.c @@ -1279,4 +1279,7 @@ void __ofono_modem_shutdown() if (set_powered(modem, FALSE) == -EINPROGRESS) modems_remaining += 1; } + + if (modems_remaining == 0) + __ofono_exit(); } |