1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 09:58:59 +01:00

Proxy fix

This commit is contained in:
Daniil Gentili 2017-10-07 22:18:21 +03:00
parent 5c547f390b
commit d086aad5ff

View File

@ -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();