mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
Proxy fix
This commit is contained in:
parent
5c547f390b
commit
d086aad5ff
@ -28,6 +28,10 @@ class Serialization
|
||||
*/
|
||||
public static function serialize($filename, $instance, $force = false)
|
||||
{
|
||||
if (isset($instance->API->setdem) && $instance->API->setdem) {
|
||||
$instance->API->setdem = false;
|
||||
$instance->API->__construct($instance->API->settings);
|
||||
}
|
||||
if (!file_exists($lock = $filename.'.lock')) {
|
||||
touch($lock);
|
||||
clearstatcache();
|
||||
|
Loading…
Reference in New Issue
Block a user