Adding a session validity check in hopes of eventually expiring timed out connections.
This commit is contained in:
parent
0fc89247aa
commit
192ef521a2
3 changed files with 18 additions and 5 deletions
10
events.py
10
events.py
|
|
@ -1,15 +1,17 @@
|
|||
import session_mgr
|
||||
|
||||
"""
|
||||
Holds the events scheduled in scheduler.py.
|
||||
"""
|
||||
|
||||
schedule = {
|
||||
'event_example': 60,
|
||||
'check_sessions': 60,
|
||||
}
|
||||
|
||||
lastrun = {}
|
||||
|
||||
def event_example():
|
||||
def check_sessions():
|
||||
"""
|
||||
This is where the example event would be placed.
|
||||
Check all of the connected sessions.
|
||||
"""
|
||||
pass
|
||||
session_mgr.check_all_sessions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue