diff --git a/src/net/src/worker_thread.cc b/src/net/src/worker_thread.cc index 1304fc296c..c4735f46b4 100644 --- a/src/net/src/worker_thread.cc +++ b/src/net/src/worker_thread.cc @@ -76,7 +76,7 @@ void* WorkerThread::ThreadMain() { NetFiredEvent* pfe = nullptr; char bb[2048]; NetItem ti; - std::shared_ptr in_conn = nullptr; + struct timeval when; gettimeofday(&when, nullptr); @@ -155,7 +155,7 @@ void* WorkerThread::ThreadMain() { continue; } } else { - in_conn = nullptr; + std::shared_ptr in_conn = nullptr; int should_close = 0; {