diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-11-26 19:33:48 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-26 19:58:25 +0100 |
commit | bd559389858370fdd696fa93f88ff999e95fff2d (patch) | |
tree | 79bbab009b1d63e7f0ca51bf9941f8121efb3875 /Servers/AudioServer | |
parent | 22a05621d5def8240c0fb9249747d6c561b49c1c (diff) | |
download | serenity-bd559389858370fdd696fa93f88ff999e95fff2d.zip |
AudioServer: Port to socket takeover
Diffstat (limited to 'Servers/AudioServer')
-rw-r--r-- | Servers/AudioServer/ASEventLoop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/AudioServer/ASEventLoop.cpp b/Servers/AudioServer/ASEventLoop.cpp index 4df03e522d..3792bba505 100644 --- a/Servers/AudioServer/ASEventLoop.cpp +++ b/Servers/AudioServer/ASEventLoop.cpp @@ -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) { |