Skip to content

Commit

Permalink
Merge pull request #16 from szymonmasternak/fix
Browse files Browse the repository at this point in the history
Updated to work on Python 3.7
  • Loading branch information
alanwia committed Nov 8, 2019
2 parents 5c39c74 + c7cd83a commit ae40b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wia/stream_client.py
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
self.function_subscriptions = {}


def connect(self, async=True):
def connect(self, _async=True):
self.__init__()
self.client.username_pw_set(Wia().access_token, ' ')
self.client.on_connect = self.on_connect
Expand All @@ -26,7 +26,7 @@ def connect(self, async=True):
self.client.on_unsubscribe = self.on_unsubscribe
self.client.on_message = self.on_message
self.client.connect(Wia().stream_config['host'], Wia().stream_config['port'], 60)
if async:
if _async:
self.client.loop_start()
self.connected = True
time.sleep(1)
Expand Down

0 comments on commit ae40b45

Please sign in to comment.