Skip to content
Snippets Groups Projects
Commit dc400703 authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

Changed if returning signal not valid

parent 74c7387d
No related branches found
No related tags found
No related merge requests found
......@@ -119,15 +119,18 @@ class dataTransfer():
signalPort = self.signalPort_MetadataOnly
signal = "START_DISPLAYER"
else:
raise Exception("Other connection type already runnging.\
raise Exception("Other connection type already running.\
More than one connection type is currently not supported.")
self.__creatSignalSocket(signalPort)
message = self.__sendSignal(signal)
if message and message == "NO_VALID_SIGNAL":
raise Exception("Connection type is not supported for this kind of sender.")
# if the response was correct
if message and message.startswith(signal):
elif message and message.startswith(signal):
self.log.info("Received confirmation ...start receiving files")
......
......@@ -202,6 +202,7 @@ class LiveViewCommunicator:
else:
self.log.debug("liveViewer signal not supported: " + str(signal) )
self.liveViewerComSocket.send("NO_VALID_SIGNAL", zmq.NOBLOCK)
if self.liveViewerDataSocket in socks and socks[self.liveViewerDataSocket] == zmq.POLLIN:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment