Skip to content

Commit

Permalink
Carry out reject if signing is rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
akberenz committed Jul 11, 2024
1 parent b884b48 commit b5a87f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/qz-tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ var qz = (function() {

_qz.signContent = undefined;
_qz.websocket.connection.send(_qz.tools.stringify(obj));
}).catch(function(err) {
_qz.log.error("Signing failed", err);

if (obj.promise != undefined) {
obj.promise.reject(new Error("Failed to sign request"));
delete _qz.websocket.pendingCalls[obj.uid];
}
});
} else {
_qz.log.trace("Signature for call", obj.signature);
Expand Down

0 comments on commit b5a87f6

Please sign in to comment.