Skip to content

Commit

Permalink
[NEW] Ability to disable user presence monitor (#12353)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Oct 17, 2018
1 parent e4f1601 commit 2ea96a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/startup/presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ Meteor.startup(function() {

UserPresence.start();

return UserPresenceMonitor.start();
const startMonitor = typeof process.env.DISABLE_PRESENCE_MONITOR === 'undefined' ||
!['true', 'yes'].includes(String(process.env.DISABLE_PRESENCE_MONITOR).toLowerCase());
if (startMonitor) {
UserPresenceMonitor.start();
}
});

0 comments on commit 2ea96a5

Please sign in to comment.