Fix NetworkManager not resetting LastUpdateTime
NetworkManager did not reset the LastUpdateTime variable to 0 when stopping. This lead to wrong behaviour in Update when Stopped and Started multiple times.
This commit is contained in:
@@ -364,6 +364,8 @@ void NetworkManager::Stop()
|
|||||||
|
|
||||||
State = NetworkConnectionState::Disconnected;
|
State = NetworkConnectionState::Disconnected;
|
||||||
Mode = NetworkManagerMode::Offline;
|
Mode = NetworkManagerMode::Offline;
|
||||||
|
LastUpdateTime = 0;
|
||||||
|
|
||||||
StateChanged();
|
StateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user