summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-09 13:22:25 +0200
committerMax Kellermann <max@musicpd.org>2018-08-09 13:22:25 +0200
commitc1b33533da7aa1400488519dc41b1720821bb6c4 (patch)
treea196f33cd63ca47a0bd728b79b315157dcf32247 /src/event
parent66fcd25b7e193c654364f5fcba8b257a3e595520 (diff)
event/ServerSocket: fix get_remote_uid() call
This call was broken since commit 9a5bcc6db0c58459b63d25fede1945b7ebef67a8 because the `UniqueSocketDescriptor` had already been moved.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ServerSocket.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx
index 93e9e911f..4e00ac41b 100644
--- a/src/event/ServerSocket.cxx
+++ b/src/event/ServerSocket.cxx
@@ -163,8 +163,9 @@ OneServerSocket::Accept() noexcept
(const char *)msg);
}
- parent.OnAccept(std::move(peer_fd), peer_address,
- get_remote_uid(peer_fd.Get()));
+ const auto uid = get_remote_uid(peer_fd.Get());
+
+ parent.OnAccept(std::move(peer_fd), peer_address, uid);
}
bool