1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

SQLServer: Add a hook to inform owners of disconnected SQL clients

This commit is contained in:
Timothy Flynn 2022-12-09 11:18:54 -05:00 committed by Linus Groh
parent fbf9cb3387
commit 5ece0a13c4
2 changed files with 5 additions and 0 deletions

View file

@ -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)