Skip to content

Commit

Permalink
Fix CPDLC auto logoff
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven04 committed Dec 10, 2022
1 parent 8c4ebe1 commit 5539ea9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vSMR/SMRPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,11 @@ void CSMRPlugin::OnTimer(int Counter)
FailedToConnectMessage = false;
}

if (HoppieConnected && GetConnectionType() == CONNECTION_TYPE_NO) {
DisplayUserMessage("CPDLC", "Server", "Automatically logged off!", true, true, false, true, false);
HoppieConnected = false;
}

if (((clock() - timer) / CLOCKS_PER_SEC) > 10 && HoppieConnected) {
_beginthread(pollMessages, 0, NULL);
timer = clock();
Expand Down

0 comments on commit 5539ea9

Please sign in to comment.