Skip to content

Commit

Permalink
lib-storage: mailbox_watch_extract_notify_fd() - give better reason i…
Browse files Browse the repository at this point in the history
…f mailbox has no IOs

This happens currently with virtual mailboxes.
  • Loading branch information
sirainen committed Jul 20, 2017
1 parent f21d653 commit 1062a88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib-storage/mailbox-watch.c
Expand Up @@ -140,7 +140,10 @@ int mailbox_watch_extract_notify_fd(struct mailbox *box, const char **reason_r)
}
if (failed)
ret = -1;
else {
else if (array_count(&temp_ios) == 0) {
*reason_r = "Mailbox has no IO notifications";
ret = -1;
} else {
ret = io_loop_extract_notify_fd(ioloop);
if (ret == -1)
*reason_r = "Couldn't extra notify fd";
Expand Down

0 comments on commit 1062a88

Please sign in to comment.