SFP commited on
Commit
6eb30cb
β€’
1 Parent(s): ea8167e

Update SpaceFace.py

Browse files
Files changed (1) hide show
  1. SpaceFace.py +4 -1
SpaceFace.py CHANGED
@@ -16,6 +16,9 @@ class User:
16
  self.last_request = time.time()
17
  self.name = name
18
  self.id = id
 
 
 
19
  class Responder:
20
  def __init__(self, projectid, channel, can_respond, can_stream, value, user):
21
  user.last_request = time.time()
@@ -113,7 +116,7 @@ def thread(n):
113
  if header in users:
114
  user = users[header]
115
  else:
116
- user = None
117
  respond = Responder(projectid, n, acceptstaticpayload, acceptstreamingpayload, value, user)
118
  endpoint[reqendpoint].receivedMessage(payload, user, respond)
119
 
 
16
  self.last_request = time.time()
17
  self.name = name
18
  self.id = id
19
+ class UserStartup:
20
+ def __init__(self):
21
+ self.last_request = time.time()
22
  class Responder:
23
  def __init__(self, projectid, channel, can_respond, can_stream, value, user):
24
  user.last_request = time.time()
 
116
  if header in users:
117
  user = users[header]
118
  else:
119
+ user = UserStartup()
120
  respond = Responder(projectid, n, acceptstaticpayload, acceptstreamingpayload, value, user)
121
  endpoint[reqendpoint].receivedMessage(payload, user, respond)
122