Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
lib/poll.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/poll.c b/lib/poll.c
index 36e061a..58dd237 100644
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -441,6 +441,9 @@ int32_t qb_poll_run(qb_handle_t handle)
}
retry_poll:
+ if (poll_instance->stop_requested) {
+ return (0);
+ }
res = poll(poll_instance->ufds,
poll_instance->poll_entry_count,
expire_timeout_msec);
--
1.7.2.3