1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-26 11:54:44 +01:00

Do not serialize

This commit is contained in:
Daniil Gentili 2017-07-30 19:50:35 +02:00
parent bbfd9ed38c
commit 4cc13a1ce2

View File

@ -134,22 +134,12 @@ Php::Value VoIP::accept()
void VoIP::__wakeup()
{
Php::Value self(this);
callState = self["internalStorage"]["callState"].value();
if (callState == CALL_STATE_ENDED) return;
initVoIPController();
if (self["configuration"]) {
parseConfig();
}
callState = CALL_STATE_ENDED;
}
Php::Value VoIP::__sleep()
{
Php::Value self(this);
self["internalStorage"]["callState"] = callState;
Php::Array res({"internalStorage", "storage", "configuration"});
Php::Array res({});
return res;
}