diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index b16f1eb84..5db7562d1 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -158,9 +158,8 @@ CurlInputStream::DoResume() { assert(GetEventLoop().IsInside()); - mutex.unlock(); + const ScopeUnlock unlock(mutex); request->Resume(); - mutex.lock(); } void