mirror of
https://github.com/eddyem/small_tel.git
synced 2026-09-30 05:40:37 +03:00
fix 100% CPU usage
This commit is contained in:
@@ -292,7 +292,7 @@ void runserver(int isunix, const char *node, int maxclients){
|
||||
}
|
||||
pthread_mutex_unlock(&Dome.mutex);
|
||||
}else forbidden = 0;
|
||||
usleep(1000);
|
||||
usleep(10000);
|
||||
if(!locksock->rthread){
|
||||
WARNX("Server handlers thread is dead");
|
||||
LOGERR("Server handlers thread is dead");
|
||||
|
||||
Reference in New Issue
Block a user