[ ] Unit or Functional tests are included in the PR
Description:
If the destroy function in the response object from createHandle was called in a different context than the original, destroy would be assigned to the call object and the destructor function would also be called in that context. By using a flag, we can guarantee the destructor is only called once regardless of associated context.
Type: bug
The following has been addressed in the PR:
prettier
as per the readme code style guidelinesDescription:
If the destroy function in the response object from
createHandle
was called in a different context than the original,destroy
would be assigned to the call object and thedestructor
function would also be called in that context. By using a flag, we can guarantee the destructor is only called once regardless of associated context.