aboutsummaryrefslogtreecommitdiff
path: root/src/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue.c')
-rw-r--r--src/queue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/queue.c b/src/queue.c
index 5c196aa..6bf9092 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -16,9 +16,10 @@ void *queue_thread_entry(void *queue_thread)
while (true) {
ret = job_read(qt->stream, &job);
- if (ret < 0) {
- if (ret == -EOF)
- ret = 0;
+ if (ret == -EOF) {
+ ret = 0;
+ break;
+ } else if (ret < 0) {
break;
}