Skip to content

Commit

Permalink
endpoint.destroy() does not return callback when bye to freeswitch fa…
Browse files Browse the repository at this point in the history
…iled (#96)

* endpoint.destroy() does not return callback when freeswitch bye failed

* Update endpoint.js

* Update endpoint.js
  • Loading branch information
spointer authored May 14, 2024
1 parent a869f41 commit cb87902
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,10 @@ class Endpoint extends Emitter {

debug(`Endpoint#destroy: executing hangup on ${this.uuid}`);
this.execute('hangup', (err, evt) => {
if (err) debug(`got error hanging up endpoint ${this.uuid}: ${err.message}`);
if (err) {
debug(`got error hanging up endpoint ${this.uuid}: ${err.message}`);
callback(err);
}
});
};

Expand Down

0 comments on commit cb87902

Please sign in to comment.