diff --git a/gun.js b/gun.js index 6767381f..e0f8a49e 100644 --- a/gun.js +++ b/gun.js @@ -765,11 +765,11 @@ if(!this.on){ return } var id = text_rand(9); if(cb){ - var to = this.on(id, cb, as); + var to = this.on(id, cb, as), lack = (this.gun._.opt.lack || 9000); to.err = setTimeout(function(){ to.next({err: "Error: No ACK received yet."}); to.off(); - }, 1000 * 9); // TODO: Make configurable!!! + }, lack < 1000 ? 1000 : lack); } return id; }