summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-05 23:10:00 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-05 23:10:00 +0000
commit86068142524207f50f39ebfde88c59082b619951 (patch)
treec24e2698b316451f44a65a55590222dbbb701ac0 /src/lib
parentfaef81b38b7448e0f111cb0732f3e954a56649e6 (diff)
Fix crash.
Diffstat (limited to 'src/lib')
-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) {