Skip to content

Commit

Permalink
Fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored and rzr committed Apr 1, 2023
1 parent 9351359 commit e4d88ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/hci-socket/bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,7 @@ NobleBindings.prototype.onLeConnComplete = function (
this.onConnectionParameterUpdateRequest.bind(this)
);

setTimeout(() => {
this._gatts[handle].exchangeMtu();
}, 0);
this._gatts[handle].exchangeMtu();
} else {
uuid = this._pendingConnectionUuid;
let statusMessage = Hci.STATUS_MAPPER[status] || 'HCI Error: Unknown';
Expand Down

0 comments on commit e4d88ac

Please sign in to comment.