Skip to content

Commit

Permalink
Transports/Seatrac: fix task blocking after stopping execution.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardo-Gabriel authored Oct 28, 2024
1 parent 2ae274d commit 62a7c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Transports/Seatrac/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ namespace Transports
sendCommand(commandCreateSeatrac(CID_SETTINGS_GET, m_data_beacon));
processInput();
}
while (m_data_beacon.newDataAvailable(CID_SETTINGS_GET) == 0 && !m_args.dummy_connection);
while (m_data_beacon.newDataAvailable(CID_SETTINGS_GET) == 0 && !m_args.dummy_connection && !stopping());

sendCommandAndWait(commandCreateSeatrac(CID_SYS_INFO, m_data_beacon), 1);

Expand Down Expand Up @@ -1245,7 +1245,7 @@ namespace Transports
setAndSendState(STA_IDLE);
}
}
while (Clock::get() <= deadline);
while (Clock::get() <= deadline && !stopping());
}

void
Expand Down

0 comments on commit 62a7c37

Please sign in to comment.