diff options
Diffstat (limited to 'src/map/chrif.cpp')
-rw-r--r-- | src/map/chrif.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp index 47eef1a..8926780 100644 --- a/src/map/chrif.cpp +++ b/src/map/chrif.cpp @@ -1211,10 +1211,14 @@ void check_connect_char_server(TimerData *, tick_t) */ int do_init_chrif (void) { - add_timer_interval(gettick() + std::chrono::seconds(1), + Timer(gettick() + std::chrono::seconds(1), check_connect_char_server, - std::chrono::seconds(10)); - add_timer_interval(gettick() + std::chrono::seconds(1), send_users_tochar, std::chrono::seconds(5)); + std::chrono::seconds(10) + ).detach(); + Timer(gettick() + std::chrono::seconds(1), + send_users_tochar, + std::chrono::seconds(5) + ).detach(); return 0; } |