Only run background thread if runcallbacks has been called more than 1 seconds ago.

This commit is contained in:
Mr_Goldberg 2020-02-14 15:01:10 -05:00
parent 8cdf5cee26
commit 6f4273bf3a
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 12 additions and 6 deletions

View file

@ -135,6 +135,7 @@ public:
bool server_init = false;
std::thread background_keepalive;
bool steamclient_server_inited = false;
std::atomic<unsigned long long> last_cb_run;
unsigned steam_pipe_counter = 1;
std::map<HSteamPipe, enum Steam_Pipe> steam_pipes;