fix inappropriate clearing of API tokens

This commit is contained in:
MinRK
2014-10-15 11:26:35 -07:00
parent 05004d3bb7
commit ed84a3e107
2 changed files with 2 additions and 2 deletions

View File

@@ -314,10 +314,10 @@ class User(Base):
config=config,
user=self,
hub=hub,
api_token=api_token.token,
)
# we are starting a new server, make sure it doesn't restore state
spawner.clear_state()
spawner.api_token = api_token.token
yield spawner.start()
spawner.start_polling()