Fix: properly stop session

This commit is contained in:
Alexander Pankratov 2021-12-12 05:11:47 +03:00
parent 237415ec14
commit c4718c0fec

View File

@ -88,6 +88,7 @@ class Client
if (!empty($instance->API)) {
$instance->unsetEventHandler();
$instance->stop();
$instance->API->unreference();
}
unset($instance);
gc_collect_cycles();