1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-26 20:04:48 +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() void VoIP::__wakeup()
{ {
Php::Value self(this); callState = CALL_STATE_ENDED;
callState = self["internalStorage"]["callState"].value();
if (callState == CALL_STATE_ENDED) return;
initVoIPController();
if (self["configuration"]) {
parseConfig();
}
} }
Php::Value VoIP::__sleep() Php::Value VoIP::__sleep()
{ {
Php::Value self(this); Php::Array res({});
self["internalStorage"]["callState"] = callState;
Php::Array res({"internalStorage", "storage", "configuration"});
return res; return res;
} }