Add missing @pyqtSlot decorators.
This commit is contained in:
parent
5bc4f85dc5
commit
795a6937ac
@ -82,11 +82,13 @@ class IPCServer(QObject):
|
|||||||
socket.error.connect(self.on_error)
|
socket.error.connect(self.on_error)
|
||||||
self._socket = socket
|
self._socket = socket
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
def on_disconnected(self):
|
def on_disconnected(self):
|
||||||
"""Clean up socket when the client disconnected."""
|
"""Clean up socket when the client disconnected."""
|
||||||
self._socket.deleteLater()
|
self._socket.deleteLater()
|
||||||
self._socket = None
|
self._socket = None
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
def on_ready_read(self):
|
def on_ready_read(self):
|
||||||
"""Read json data from the client."""
|
"""Read json data from the client."""
|
||||||
while self._socket.canReadLine():
|
while self._socket.canReadLine():
|
||||||
|
Loading…
Reference in New Issue
Block a user