AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SQLX, problem with server quit. (https://forums.alliedmods.net/showthread.php?t=76839)

PoliceMan 08-31-2008 15:27

SQLX, problem with server quit.
 
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.


All times are GMT -4. The time now is 03:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.