summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index 5db654064..69ca5b39a 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -149,17 +149,18 @@ Server::worker_thread ()
lock.unlock ();
int frame = -1;
+ string ip;
struct timeval start;
gettimeofday (&start, 0);
try {
frame = process (socket);
+ ip = socket->socket().remote_endpoint().address().to_string();
} 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 ();