Avoid killing a non-WebStudio show if the connection drops (#135)
This commit is contained in:
parent
87efff75cd
commit
36fadf7e58
1 changed files with 7 additions and 5 deletions
|
@ -389,6 +389,8 @@ def post_wsSessions() -> Any:
|
||||||
if currentShow and currentShow["connid"] == conn["connid"]:
|
if currentShow and currentShow["connid"] == conn["connid"]:
|
||||||
# they should be on air now, but they've just died. go to jukebox.
|
# they should be on air now, but they've just died. go to jukebox.
|
||||||
# but don't kill it during the news, or after the end time, to avoid unexpected jukeboxing
|
# but don't kill it during the news, or after the end time, to avoid unexpected jukeboxing
|
||||||
|
# Also, avoid killing them if they're on a non-WS source
|
||||||
|
if currentShow["sourceid"] == SOURCE_WS:
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
if now < (currentShow["endTimestamp"] - 15):
|
if now < (currentShow["endTimestamp"] - 15):
|
||||||
print("jukeboxing due to their disappearance...")
|
print("jukeboxing due to their disappearance...")
|
||||||
|
|
Loading…
Reference in a new issue