Skip to content

Commit

Permalink
Move the server field into the __init__()
Browse files Browse the repository at this point in the history
  • Loading branch information
grapeot committed Sep 21, 2021
1 parent 36ee06d commit 803d974
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def __init__(self, address, handler, output_stream, latest_stream):
super(StreamingServer, self).__init__(address, handler)
self.output_stream = output_stream
self.latest_stream = latest_stream
# Used for invokers to know the camera has stopped responding
self.last_update_timestamp = time()

class StreamingHandler(server.BaseHTTPRequestHandler):
def do_GET(self):
Expand Down

0 comments on commit 803d974

Please sign in to comment.