Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 590 Bytes
from shootblues import Dependency
Dependency("Common.Script.dll")
from shootblues.common import log
from shootblues.common.service import forceStart, forceStop
import blue
import service
class SessionTimerSvc:
__notifyevents__ = [
"OnSessionChanged"
]
def __init__(self):
pass
def OnSessionChanged(self, isRemote, session, change):
log("Session changed, timer suppressed.")
session.nextSessionChange = blue.os.GetTime(1) + 1
def __load__():
forceStart("sessiontimer", SessionTimerSvc)
def __unload__():
forceStop("sessiontimer")