diff options
Diffstat (limited to 'fastboot/engine.c')
| -rw-r--r-- | fastboot/engine.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fastboot/engine.c b/fastboot/engine.c index 93be3de..8d7b68a 100644 --- a/fastboot/engine.c +++ b/fastboot/engine.c @@ -565,6 +565,8 @@ int fb_execute_queue(usb_handle *usb) int status = 0; a = action_list; + if (!a) + return status; resp[FB_RESPONSE_SZ] = 0; double start = -1; @@ -605,3 +607,8 @@ int fb_execute_queue(usb_handle *usb) fprintf(stderr,"finished. total time: %.3fs\n", (now() - start)); return status; } + +int fb_queue_is_empty(void) +{ + return (action_list == NULL); +} |
