Browse Source

Fix missing self parameter in async code. Fixes #14.

padding
nereg 5 years ago
committed by Gabriel Huber
parent
commit
3dda4b8d35
  1. 2
      a2s/a2sasync.py

2
a2s/a2sasync.py

@ -47,7 +47,7 @@ class A2SProtocol(asyncio.DatagramProtocol):
self.error = exc self.error = exc
self.error_event.set() self.error_event.set()
def raise_on_error(): def raise_on_error(self):
error = self.error error = self.error
self.error = None self.error = None
self.error_event.clear() self.error_event.clear()

Loading…
Cancel
Save