Add missing @pyqtSlot decorators.

This commit is contained in:
Florian Bruhin 2014-10-13 20:37:09 +02:00
parent 5bc4f85dc5
commit 795a6937ac

View File

@ -82,11 +82,13 @@ class IPCServer(QObject):
socket.error.connect(self.on_error)
self._socket = socket
@pyqtSlot()
def on_disconnected(self):
"""Clean up socket when the client disconnected."""
self._socket.deleteLater()
self._socket = None
@pyqtSlot()
def on_ready_read(self):
"""Read json data from the client."""
while self._socket.canReadLine():