SFP commited on
Commit
ea8167e
1 Parent(s): 92eca72

Update SpaceFace.py

Browse files
Files changed (1) hide show
  1. SpaceFace.py +2 -1
SpaceFace.py CHANGED
@@ -119,11 +119,12 @@ def thread(n):
119
 
120
 
121
  def start_server(endpoints):
 
122
  global conn
123
  global endpoint
124
  endpoints.insert(0, ConnectionEndpoint())
125
  endpoint = endpoints
126
- conn = session.connect_cloud(project_id)
127
  threads = [threading.Thread(target=thread, args=(i+1,)) for i in range(10)]
128
  for t in threads:
129
  t.start()
 
119
 
120
 
121
  def start_server(endpoints):
122
+ global projectid
123
  global conn
124
  global endpoint
125
  endpoints.insert(0, ConnectionEndpoint())
126
  endpoint = endpoints
127
+ conn = session.connect_cloud(projectid)
128
  threads = [threading.Thread(target=thread, args=(i+1,)) for i in range(10)]
129
  for t in threads:
130
  t.start()