diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-05 23:10:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-05 23:10:00 +0000 |
| commit | 86068142524207f50f39ebfde88c59082b619951 (patch) | |
| tree | c24e2698b316451f44a65a55590222dbbb701ac0 /src/lib | |
| parent | faef81b38b7448e0f111cb0732f3e954a56649e6 (diff) | |
Fix crash.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/server.cc | 5 |
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) { |
