summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/server.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index ff77f8e8f..5db654064 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -158,7 +158,8 @@ Server::worker_thread ()
} catch (std::exception& e) {
_log->log (String::compose ("Error: %1", e.what()));
}
-
+
+ string const ip = socket->socket().remote_endpoint().address().to_string();
socket.reset ();
lock.lock ();
@@ -168,7 +169,7 @@ Server::worker_thread ()
gettimeofday (&end, 0);
string const message = String::compose (
- "Encoded frame %1 from %2 in %3s", frame, socket->socket().remote_endpoint().address().to_string(), seconds(end) - seconds(start)
+ "Encoded frame %1 from %2 in %3s", frame, ip, seconds(end) - seconds(start)
);
if (_verbose) {