diff --git a/src/MTProtoTools/FileServer.php b/src/MTProtoTools/FileServer.php index 5484972c0..4be504384 100644 --- a/src/MTProtoTools/FileServer.php +++ b/src/MTProtoTools/FileServer.php @@ -183,7 +183,7 @@ trait FileServer $this->checkDownloadScript($f); return self::$checkedAutoload[$autoloadPath] = $f; } finally { - $lock->unlock(); + $lock->release(); } }