Skip to content

Commit

Permalink
tcp: fix: stateChanged signal was never emitted
Browse files Browse the repository at this point in the history
  • Loading branch information
avarga committed Apr 10, 2024
1 parent 46fd419 commit 916d2a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/inet/transportlayer/tcp/TcpConnectionBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ bool TcpConnection::performStateTransition(const TcpEventCode& event)
if (oldState != fsm.getState()) {
EV_INFO << "Transition: " << stateName(oldState) << " --> " << stateName(fsm.getState()) << " (event was: " << eventName(event) << ")\n";
EV_DEBUG_C("testing") << tcpMain->getName() << ": " << stateName(oldState) << " --> " << stateName(fsm.getState()) << " (on " << eventName(event) << ")\n";
emit(stateSignal, fsm.getState());

// cancel timers, etc.
stateEntered(fsm.getState(), oldState, event);
Expand Down

0 comments on commit 916d2a8

Please sign in to comment.