return after redirect to spawner form

avoids double-call to redirect, which fails
This commit is contained in:
Min RK
2016-01-05 14:02:20 +01:00
parent b0cc47984b
commit 53785a985d

View File

@@ -454,6 +454,7 @@ class UserSpawnHandler(BaseHandler):
if status is not None: if status is not None:
if current_user.spawner.options_form: if current_user.spawner.options_form:
self.redirect(url_path_join(self.hub.server.base_url, 'spawn')) self.redirect(url_path_join(self.hub.server.base_url, 'spawn'))
return
else: else:
yield self.spawn_single_user(current_user) yield self.spawn_single_user(current_user)
# set login cookie anew # set login cookie anew