projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved timeq loop to the "main thread" and made it more precise
[NeonServV5.git]
/
src
/
cmd_neonserv_extscript.c
diff --git
a/src/cmd_neonserv_extscript.c
b/src/cmd_neonserv_extscript.c
index d060d57e1ddc2155ca34d9bd7538aed04a1b0bd2..e4a4e2e345ca02688eb6a6a0182ef51e00e69826 100644
(file)
--- a/
src/cmd_neonserv_extscript.c
+++ b/
src/cmd_neonserv_extscript.c
@@
-139,7
+139,7
@@
CMD_BIND(neonserv_cmd_extscript) {
#ifndef WIN32
fcntl(fileno(cache->pipe), F_SETFL, O_NONBLOCK);
#endif
#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) {
}
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);
}
else
reply(cache->textclient, cache->user, "%s", command);
}
- timeq_
add(1
, neonserv_cmd_extscript_callback, cache);
+ timeq_
uadd(200
, neonserv_cmd_extscript_callback, cache);
}
}