Calling destroy() on the callObject has no effect
Daniel808
Member
in Discussion
Hi,
calling destroy() on the callObject seems to have no effect:
if (callObject) await callObject.destroy();
if (callObject) console.error("callObject still exists -.-")
The behaviour does not change, if I chain the promise with .then()
.
Versions:
"@daily-co/daily-js": "^0.44.1",
"@daily-co/daily-react": "^0.7.3",
Thanks
0
Comments
-
Hi, @Daniel808 - thanks for reporting this! I believe it is expected behavior.
destroy()
frees up resources that the call object itself had to allocate withindaily-js
. It does not manipulate any variables declared in your own application code. You can use theisDestroyed()
call object instance method to detect when the call object has been destroyed (it will returntrue
if so).1 -
Thank you for the hint, i will give it a try.
0