Browse Source

do not allow locks on undefined

activeAddress
Ivan Socolsky 10 years ago
parent
commit
628dc12d00
  1. 2
      lib/utils.js

2
lib/utils.js

@ -7,6 +7,8 @@ var Utils = {};
Utils.runLocked = function(token, cb, task) {
var self = this;
$.shouldBeDefined(token);
Lock.get(token, function(lock) {
var _cb = function() {
cb.apply(null, arguments);

Loading…
Cancel
Save