Write stopped time to database for all events

* To prevent the "long duration" websocket issue for missing stop events
This commit is contained in:
JonnyWong16
2017-08-22 20:29:21 -07:00
parent a81dfe83a9
commit 1c8e581cf1
4 changed files with 11 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ class ActivityProcessor(object):
'transcode_audio_channels': session.get('transcode_audio_channels', ''),
'transcode_width': session.get('stream_video_width', ''),
'transcode_height': session.get('stream_video_height', ''),
'stopped': None
'stopped': int(time.time())
}
# Add ip_address back into values