input/curl: use class ScopeUnlock

This commit is contained in:
Max Kellermann 2019-04-25 19:32:58 +02:00
parent 36aa204575
commit 9da7509944
1 changed files with 1 additions and 2 deletions

View File

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