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:
parent
bbfd9ed38c
commit
4cc13a1ce2
14
main.cpp
14
main.cpp
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user