Apply fixes from StyleCI
This commit is contained in:
parent
f352a1d285
commit
3c4fa8badd
@ -242,6 +242,7 @@ trait Files
|
||||
$stream = fopen($file, 'r+b');
|
||||
\danog\MadelineProto\Logger::log(['Waiting for lock of file to download...']);
|
||||
flock($stream, LOCK_EX);
|
||||
|
||||
try {
|
||||
$this->download_to_stream($message_media, $stream, $cb, filesize($file), -1);
|
||||
} finally {
|
||||
|
@ -54,6 +54,7 @@ class Serialization
|
||||
$lock = fopen($lock, 'w');
|
||||
\danog\MadelineProto\Logger::log(['Waiting for exclusive lock of serialization lockfile...']);
|
||||
flock($lock, LOCK_EX);
|
||||
|
||||
try {
|
||||
$wrote = file_put_contents($filename.'.temp.session', serialize($instance));
|
||||
rename($filename.'.temp.session', $filename);
|
||||
|
Loading…
Reference in New Issue
Block a user