Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Fix custom timeout for wait_for_response() #2634

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mycroft/messagebus/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def wait_for_response(self, message, reply_type=None, timeout=3.0):
waiter = MessageWaiter(self, message_type) # Setup response handler
# Send message and wait for it's response
self.emit(message)
return waiter.wait()
return waiter.wait(timeout)

def on(self, event_name, func):
self.emitter.on(event_name, func)
Expand Down