Hi, well I have a little problem, here is a description.
I have a plugin, that executes a threaded query on every connecting client (via set_task in client_putinserver), the problem is, that sql server located on another machine and it take a lot of time to execute an query and get results. The problem is here: when server reaches timelimit and changes map, or when "quit" is called from console, it freezes (not crashes) I assume, that it's trying to end all pending queries, cuz after some time it'll close (or mapchange) normally. Here is my question, is there is a way, maybe in plugin_end, to somehow force close of all connections or pending threads?
I tried to play with
Code:
public plugin_end()
{
SQL_FreeHandle(handlename)
}
but no effect, so I'm asking for way to forcely close all threads and shutdown server without any wait time.
Sorry for my English.