diff options
Diffstat (limited to 'protocols/Steam/src/steam_server.cpp')
-rw-r--r-- | protocols/Steam/src/steam_server.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_server.cpp b/protocols/Steam/src/steam_server.cpp index 56df3f0cc3..a93c7ae696 100644 --- a/protocols/Steam/src/steam_server.cpp +++ b/protocols/Steam/src/steam_server.cpp @@ -19,5 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. void __cdecl CSteamProto::ServerThread(void *) { - + // load web socket servers first if needed + int iTimeDiff = db_get_dw(0, STEAM_MODULE, DBKEY_HOSTS_DATE); + if (!db_get_dw(0, STEAM_MODULE, DBKEY_HOSTS_COUNT) || time(0) - iTimeDiff > 3600 * 24 * 7) { // once a week + // if (!SendRequest()) + } } |