Skip to content
Snippets Groups Projects
Commit ffdcb525 authored by Oswaldo Acauan's avatar Oswaldo Acauan
Browse files

Fix ´get_all_meetings_request´ being published multiple times

parent 4d5782a2
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ class RedisPubSub {
constructor(config = {}) {
this.config = config;
this.didSendRequestEvent = false;
this.pub = Redis.createClient();
this.sub = Redis.createClient();
this.emitter = new EventEmitter2();
......@@ -57,7 +58,11 @@ class RedisPubSub {
}
handleSubscribe() {
if (this.didSendRequestEvent) return;
this.publish(this.config.channels.toBBBApps.meeting, REQUEST_EVENT);
this.didSendRequestEvent = true;
console.log('oi');
}
handleMessage(pattern, channel, message = '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment