mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-14 20:24:28 +05:00
refactor: some changes
This commit is contained in:
@@ -184,6 +184,10 @@ protected:
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if (vars.states.restarting || vars.states.upgrading) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->connected && !this->client->connected()) {
|
||||
this->connected = false;
|
||||
this->onDisconnect();
|
||||
|
||||
Reference in New Issue
Block a user