1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

Forget withrottle client on disconnect

This commit is contained in:
Asbelos
2022-08-05 18:14:22 +01:00
parent 5430711672
commit 42ac954475
3 changed files with 10 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ void CommandDistributor::parse(byte clientId,byte * buffer, RingStream * stream
}
void CommandDistributor::forget(byte clientId) {
if (clients[clientId]==WITHROTTLE_TYPE) WiThrottle::forget(clientId);
clients[clientId]=NONE_TYPE;
}
#endif