input/curl: use class ScopeUnlock

This commit is contained in:
Max Kellermann
2019-04-25 19:32:58 +02:00
parent 36aa204575
commit 9da7509944

@ -158,9 +158,8 @@ CurlInputStream::DoResume()
{ {
assert(GetEventLoop().IsInside()); assert(GetEventLoop().IsInside());
mutex.unlock(); const ScopeUnlock unlock(mutex);
request->Resume(); request->Resume();
mutex.lock();
} }
void void