Fix: Do not try to reconnect TCP without SLAC and SDP.

This commit is contained in:
uhi22 2023-05-03 08:18:12 +02:00
parent 7b35a5f79b
commit 5f96ba14e4

View file

@ -552,12 +552,9 @@ class fsmPev():
def stateFunctionSequenceTimeout(self): def stateFunctionSequenceTimeout(self):
# Here we end, if we run into a timeout in the state machine. This is an error case, and # Here we end, if we run into a timeout in the state machine. This is an error case, and
# we should re-initalize and try again to get a communication. # an end of the PEV state machine. The re-initialization is performed by the
# Todo: Maybe we want even inform the pyPlcHomeplug to do a new SLAC. # lower layers SLAC, SDP, together with the connection manager. Nothing to do here.
# For the moment, we just re-establish the TCP connection.
self.publishStatus("ERROR Timeout") self.publishStatus("ERROR Timeout")
self.reInit()
stateFunctions = { stateFunctions = {
stateNotYetInitialized: stateFunctionNotYetInitialized, stateNotYetInitialized: stateFunctionNotYetInitialized,