From 9da750994493e1e3a080caa88f09549a287827c6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Apr 2019 19:32:58 +0200 Subject: [PATCH] input/curl: use class ScopeUnlock --- src/input/plugins/CurlInputPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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