diff options
-rw-r--r-- | src/event/ServerSocket.cxx | 5 |
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 |