diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-10-01 09:50:20 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-10-03 09:10:43 -0500 |
commit | 6c9195486e43cdb100b3ed8c5e9582cbc7023ccd (patch) | |
tree | 1e932fb2f7f3e19e0662a42a5f6f3638dc666262 /tools | |
parent | c563ced6864c56bb0cff3ae90ee9cc922e1e536d (diff) | |
download | ofono-6c9195486e43cdb100b3ed8c5e9582cbc7023ccd.tar.bz2 |
stktest: Don't power up if no more tests remain
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stktest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/stktest.c b/tools/stktest.c index 05ff0ba2..12c87dde 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -1213,8 +1213,10 @@ void __stktest_test_next() else cur_test = cur_test->next; - if (cur_test == NULL) + if (cur_test == NULL) { g_main_loop_quit(main_loop); + return; + } powerup(); } |