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