mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
SQLServer: Add a hook to inform owners of disconnected SQL clients
This commit is contained in:
parent
fbf9cb3387
commit
5ece0a13c4
2 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,9 @@ ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSock
|
|||
void ConnectionFromClient::die()
|
||||
{
|
||||
s_connections.remove(client_id());
|
||||
|
||||
if (on_disconnect)
|
||||
on_disconnect();
|
||||
}
|
||||
|
||||
Messages::SQLServer::ConnectResponse ConnectionFromClient::connect(DeprecatedString const& database_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue