throw error on polling

experimental
Yago 10 years ago
parent f10ba246d0
commit 399dab4d77
  1. 1
      src/telegramPolling.js

@ -40,6 +40,7 @@ TelegramBotPolling.prototype._polling = function () {
}.bind(this)) }.bind(this))
.catch(function (err) { .catch(function (err) {
debug('polling error: %j', err); debug('polling error: %j', err);
throw err;
}) })
.finally(function () { .finally(function () {
if (this.abort) { if (this.abort) {

Loading…
Cancel
Save