23.04.2012, 19:22
Hi,
I just found a bug in my current gamemode: Timers crashes the server if I try to reload a lot of data (MySQL, XML, ...)
A test resulted in: Timers are threaded?
I have a timer (250ms interval)
I send a RCON command which reloads all pickups on the server from a MySQL database.
In timer: printing "Loop"
In RCON command: printing one line for each loaded pickup
Output in the server log file:
WTF
I think it should look like that:
I just found a bug in my current gamemode: Timers crashes the server if I try to reload a lot of data (MySQL, XML, ...)
A test resulted in: Timers are threaded?
I have a timer (250ms interval)
I send a RCON command which reloads all pickups on the server from a MySQL database.
In timer: printing "Loop"
In RCON command: printing one line for each loaded pickup
Output in the server log file:
Код:
[2012-04-23 21:26:34] Pickup: 1 [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Pickup: 2 [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Pickup: 3 [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Pickup: 4 [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Pickup: 5 [2012-04-23 21:26:34] Loop
I think it should look like that:
Код:
[2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Loop [2012-04-23 21:26:34] Pickup: 1 [2012-04-23 21:26:34] Pickup: 2 [2012-04-23 21:26:34] Pickup: 3 [2012-04-23 21:26:34] Pickup: 4 [2012-04-23 21:26:34] Pickup: 5