summaryrefslogtreecommitdiff
path: root/api.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-12 20:13:50 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-12 20:13:50 +0200
commit54565aeccffb0722de554820eb856b23ac3c004f (patch)
tree11f969963f6d6b1bb1a437e8e4572df902ae6f43 /api.js
parent29f937a1d97c60334fa0e707150f73e5c3c773bb (diff)
downloaddiscordbot-54565aeccffb0722de554820eb856b23ac3c004f.tar.gz
discordbot-54565aeccffb0722de554820eb856b23ac3c004f.zip
fix update subscribe inf loop
Diffstat (limited to 'api.js')
-rw-r--r--api.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/api.js b/api.js
index 0fe9e78..66d52da 100644
--- a/api.js
+++ b/api.js
@@ -170,6 +170,7 @@ module.exports.subscribeUpdates = (name, timeout=UPDATE_TIMEOUT) => {
} };
}
if (msg == Channel.DONE) {
+ subscribed = false;
subscription.unsubscribe();
return undefined;
}