Masanobu Yasui authored on 2013/10/28 16:16:04
Showing 1 changed files
... ...
@@ -197,7 +197,7 @@ int do_select(fd_set *rfds, fd_set *wfds)
197 197
 
198 198
 void do_pong()
199 199
 {
200
-  uint32_t interval = MAKUO_PONG_INTERVAL;
200
+  static uint32_t interval = MAKUO_PONG_INTERVAL;
201 201
   if(mtimeout(&lastpong, interval)){
202 202
     interval  = MAKUO_PONG_INTERVAL;
203 203
     interval += ((rand() % 21) - 10) * 1000;