Skip to content

Commit

Permalink
Merge pull request #305 from TA2k/master
Browse files Browse the repository at this point in the history
Add callback call check
  • Loading branch information
agsh authored Oct 30, 2023
2 parents 6bdce30 + 044103c commit c12f24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ module.exports = function(Cam) {
this.removeAllListeners('event'); // We can subscribe again only if there is no 'event' listener
var data = linerase(res).unsubscribeResponse;
}
if (callback) {
if (callback && callback.call) {
callback.call(this, err, data, xml);
}
}.bind(this));
Expand Down

0 comments on commit c12f24a

Please sign in to comment.