Skip to content

Commit

Permalink
--no-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
lopter committed Feb 26, 2022
1 parent cfa70d1 commit fbcbfc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monome.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ def connection_made(self, transport):
self.send('/serialosc/list', self.host, self.port)
self.send('/serialosc/notify', self.host, self.port)

async def connect(self, loop=None):
async def connect(self, host, loop=None):
if loop is None:
if sys.version_info >= (3, 7):
loop = asyncio.get_running_loop()
else:
loop = asyncio.get_event_loop()

transport, protocol = await loop.create_datagram_endpoint(lambda: self,
remote_addr=('127.0.0.1', 12002))
remote_addr=(host, 12002))

def _on_serialosc_device(self, addr, path, id, type, port):
type = type.strip() # remove trailing spaces for arcs
Expand Down

0 comments on commit fbcbfc6

Please sign in to comment.