Explorar o código

Fixed most annoying issue known to mankind.

KrisVos130 %!s(int64=8) %!d(string=hai) anos
pai
achega
c0367c1895
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/client/scripts/routes.js

+ 4 - 0
app/client/scripts/routes.js

@@ -7,6 +7,10 @@ Router.onBeforeAction(function() {
     var self = this;
     var next = self.next;
     var isMaintanance = Meteor.settings.public.maintenance;
+    if (Session.get("rTimeInterval") !== undefined) {
+        Meteor.clearInterval(Session.get("rTimeInterval"));
+        Session.set("rTimeInterval", undefined);
+    }
     if(isMaintanance === true){
         var user = Meteor.user();
         if(user !== null && user.profile !== undefined && (user.profile.rank === "admin" || user.profile.rank === "moderator")){