Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Added break if queue is empty for issue Percona-QA#39
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahriyarR committed Jan 31, 2017
1 parent 3ae1fc1 commit 1e85d08
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,15 @@ def main():
observer.start()
try:
while True:
if event_handler.waitForEvent(5) == False:
if event_handler.waitForEvent(1) == False:
print("Empty Queue!")
break
print("Completed - OK")
observer.stop()

except KeyboardInterrupt:
observer.stop()

print("Completed - OK")
observer.stop()
observer.join()


Expand Down

0 comments on commit 1e85d08

Please sign in to comment.