Make execute yield the processor after every command

A player sending execute script contents quickly could theoretically
get an unfair share of the server.  Missed in commit db6fd8da
(v4.2.22), which made only the normal command loop yield.
This commit is contained in:
Markus Armbruster 2012-01-29 08:41:54 +01:00
parent 5585dda091
commit d78d9cac1d

View file

@ -260,6 +260,7 @@ execute(void)
failed = 1;
} else if (dispatch(buf, NULL) < 0)
failed = 1;
empth_yield();
}
if (failed) {
while (recvclient(buf, sizeof(buf)) >= 0) ;