mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
AudioServer: Port to socket takeover
This commit is contained in:
parent
22a05621d5
commit
bd55938985
3 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,8 @@
|
|||
ASEventLoop::ASEventLoop()
|
||||
: m_server(CLocalServer::construct())
|
||||
{
|
||||
unlink("/tmp/asportal");
|
||||
m_server->listen("/tmp/asportal");
|
||||
bool ok = m_server->take_over_from_system_server();
|
||||
ASSERT(ok);
|
||||
m_server->on_ready_to_accept = [this] {
|
||||
auto client_socket = m_server->accept();
|
||||
if (!client_socket) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue