diff --git a/Ladybird/SQLServer/main.cpp b/Ladybird/SQLServer/main.cpp index c2c06cfa69f..d41cd6fedc7 100644 --- a/Ladybird/SQLServer/main.cpp +++ b/Ladybird/SQLServer/main.cpp @@ -36,6 +36,9 @@ ErrorOr serenity_main(Main::Arguments arguments) auto client = TRY(SQLServer::ConnectionFromClient::try_create(move(socket), 1)); client->set_fd_passing_socket(TRY(Core::Stream::LocalSocket::adopt_fd(sql_server_fd_passing_socket))); client->set_database_path(move(database_path)); + client->on_disconnect = [&]() { + loop.quit(0); + }; return loop.exec(); }