Skip to content

Commit

Permalink
Use explicit port for soc task
Browse files Browse the repository at this point in the history
  • Loading branch information
94929 committed Nov 16, 2021
1 parent 55944e6 commit ec5c3dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modi/task/soc_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class SocTask(ConnTask):

def __init__(self, verbose=False):
def __init__(self, verbose=False, port=None):
super().__init__(verbose=verbose)
print('Initiating soc_task connection...')
self._bus = WebsocketServer(host='localhost', port=8765)
Expand All @@ -22,7 +22,7 @@ def __init__(self, verbose=False):

def open_conn(self):
Thread(target=self.__open, daemon=True).start()
Thread(target=self.__open, daemon=True).start()
Thread(target=self.__send_handler, daemon=True).start()

def close_conn(self):
self.__close_event = True
Expand Down

0 comments on commit ec5c3dc

Please sign in to comment.