moved timeq loop to the "main thread" and made it more precise
[NeonServV5.git] / src / cmd_neonserv_extscript.c
index d060d57e1ddc2155ca34d9bd7538aed04a1b0bd2..e4a4e2e345ca02688eb6a6a0182ef51e00e69826 100644 (file)
@@ -139,7 +139,7 @@ CMD_BIND(neonserv_cmd_extscript) {
     #ifndef WIN32
     fcntl(fileno(cache->pipe), F_SETFL, O_NONBLOCK);
     #endif
-    timeq_add(1, neonserv_cmd_extscript_callback, cache);
+    timeq_uadd(200, neonserv_cmd_extscript_callback, cache);
 }
 
 static TIMEQ_CALLBACK(neonserv_cmd_extscript_callback) {
@@ -163,7 +163,7 @@ static TIMEQ_CALLBACK(neonserv_cmd_extscript_callback) {
         else
             reply(cache->textclient, cache->user, "%s", command);
     }
-    timeq_add(1, neonserv_cmd_extscript_callback, cache);
+    timeq_uadd(200, neonserv_cmd_extscript_callback, cache);
 }