mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 21:35:07 +00:00
ProtocolServer: Turn this into a multi-instance service
Everyone who connects to ProtocolServer now gets his own instance. This means that different users can no longer talk to the same exact ProtocolServer process, enhanching security and stability.
This commit is contained in:
parent
a122a544da
commit
6f059ee830
3 changed files with 8 additions and 15 deletions
|
@ -48,6 +48,8 @@ ClientConnection::~ClientConnection()
|
|||
void ClientConnection::die()
|
||||
{
|
||||
s_connections.remove(client_id());
|
||||
if (s_connections.is_empty())
|
||||
Core::EventLoop::current().quit(0);
|
||||
}
|
||||
|
||||
OwnPtr<Messages::ProtocolServer::IsSupportedProtocolResponse> ClientConnection::handle(const Messages::ProtocolServer::IsSupportedProtocol& message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue