Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
glue: reset netlib warning on network death
  • Loading branch information
blattersturm committed Jul 4, 2019
1 parent b9075c0 commit ade4b2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/components/glue/src/BindNetLibrary.cpp
Expand Up @@ -81,6 +81,11 @@ static InitFunction initFunction([] ()

OnKillNetwork.Connect([=] (const char* message)
{
{
std::unique_lock<std::mutex> lock(netLibWarningMessageLock);
netLibWarningMessage = "";
}

library->Disconnect(message);

Instance<ICoreGameInit>::Get()->ClearVariable("storyMode");
Expand Down

0 comments on commit ade4b2b

Please sign in to comment.