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