Skip to content

Conversation

nehamanoli
Copy link

Infinite loop issue resolved by verifying the size of the queue in function: serve_orders()

Infinite loop issue resolved by verifying the size of the queue in function : serve_orders()
@@ -34,11 +34,15 @@ def place_orders(orders):

def serve_orders():
time.sleep(1)
while True:
while food_order_queue.size() >= 0:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while food_order_queue.size > 0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants