Skip to content

Commit

Permalink
Fixed Crash
Browse files Browse the repository at this point in the history
Forgot to reset the connected status.
  • Loading branch information
RaphaelIT7 committed Apr 17, 2023
1 parent 5a7c731 commit e40655d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class DisconnectEventListener : public IGameEventListener2
if (connected)
{
CreateSimpleThread(ClearCache, nullptr);
connected = false;
}
}
};
Expand All @@ -51,6 +52,7 @@ class ActivateEventListener : public IGameEventListener2
connected = true;
}
};

static ActivateEventListener* ActivateListener = new ActivateEventListener;
static DisconnectEventListener* DisconnectListener = new DisconnectEventListener;
void AddAsyncCacheDataType(MDLCacheDataType_t type, char* type_str) {
Expand Down

0 comments on commit e40655d

Please sign in to comment.