1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Backend: Marked TODO for error handling state

This commit is contained in:
Bumsik Kim 2018-05-16 10:52:13 -04:00
parent bc0de4f368
commit 5ef4e1bcbd
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6

View file

@ -528,9 +528,11 @@ class Backend(QObject):
def _onEnded(exitCode):
if exitCode is not 0:
self.vncState = self.VNCState.ERROR
self.onError.emit('X11VNC: Error occurred.')
print("VNC Exited.")
self.onError.emit('X11VNC: Error occurred.\nDouble check if the port is already used.')
self.vncState = self.VNCState.OFF # TODO: better handling error state
else:
self.vncState = self.VNCState.OFF
print("VNC Exited.")
atexit.unregister(self.stopVNC)
logfile = open(X11VNC_LOG_PATH, "wb")
self.vncServer = ProcessProtocol(_onConnected, _onReceived, _onReceived, _onEnded, logfile)