Fix spelling mistkae
This commit is contained in:
parent
1169280c73
commit
0159043895
1 changed files with 5 additions and 11 deletions
|
|
@ -109,9 +109,9 @@ class Connection():
|
||||||
while not self._stopping:
|
while not self._stopping:
|
||||||
try:
|
try:
|
||||||
self._handle_json(self._ws.recv())
|
self._handle_json(self._ws.recv())
|
||||||
except (WSException, OSError, ValueError):
|
except WSException:
|
||||||
if not self._stopping:
|
if not self._stopping:
|
||||||
self._disconnect()
|
self.disconnect()
|
||||||
self._connect()
|
self._connect()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
|
@ -119,19 +119,13 @@ class Connection():
|
||||||
stop() -> None
|
stop() -> None
|
||||||
|
|
||||||
Close the connection to the room.
|
Close the connection to the room.
|
||||||
|
Joins the thread launched by self.launch().
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._stopping = True
|
self._stopping = True
|
||||||
self._disconnect()
|
self.disconnect()
|
||||||
|
|
||||||
self._callbacks.call("stop")
|
self._callbacks.call("stop")
|
||||||
|
|
||||||
def join(self):
|
|
||||||
"""
|
|
||||||
join() -> None
|
|
||||||
|
|
||||||
Join the thread spawned by launch.
|
|
||||||
"""
|
|
||||||
|
|
||||||
if self._thread:
|
if self._thread:
|
||||||
self._thread.join()
|
self._thread.join()
|
||||||
|
|
@ -211,7 +205,7 @@ class Connection():
|
||||||
try:
|
try:
|
||||||
self._ws.send(json.dumps(data))
|
self._ws.send(json.dumps(data))
|
||||||
except WSException:
|
except WSException:
|
||||||
self._disconnect()
|
self.disconnect()
|
||||||
|
|
||||||
def send_packet(self, ptype, **kwargs):
|
def send_packet(self, ptype, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue