pybricks.messaging: fix BluetoothMailboxServer close

As per standard Python socketserver, there is `server_close()` rather than `close()`.

Fixes #51
This commit is contained in:
David Lechner
2021-04-07 19:41:30 +02:00
committed by laurensvalk
parent b471cae0bc
commit df27ebc27e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -180,5 +180,5 @@ class BluetoothMailboxClient:
There was a problem establishing the connection.
"""
def close(self):
def server_close(self):
"""Closes all connections."""
+1 -1
View File
@@ -40,7 +40,7 @@ class BluetoothMailboxServer(Connection):
def __enter__(self) -> BluetoothMailboxServer: ...
def __exit__(self, type, value, traceback) -> None: ...
def wait_for_connection(self, count: int = 1) -> None: ...
def close(self) -> None: ...
def server_close(self) -> None: ...
class BluetoothMailboxClient(Connection):
def __enter__(self) -> BluetoothMailboxClient: ...