mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-28 21:07:39 +00:00
src/polling: Fix bug #276
Bug: With environment variable, `NODE_ENV`, is set to 'development', 'request-promise' emits the process warning: Warning: a promise was created in a handler, but was not returned from it > If you know what you're doing and don't want to silence all > warnings, you can create runaway promises without causing this > warning by returning e.g. null: > > — http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-created-in-a-handler-but-was-not-returned-from-it We believe we know what we are doing. References: * Issue #276: https://github.com/yagop/node-telegram-bot-api/issues/276
This commit is contained in:
parent
14f37c7181
commit
3221d647cc
@ -104,6 +104,7 @@ class TelegramBotPolling {
|
||||
debug('updated offset: %s', this._offset);
|
||||
this.callback(update);
|
||||
});
|
||||
return null;
|
||||
})
|
||||
.catch(err => {
|
||||
debug('polling error: %s', err.message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user