add missing commits for deprecated ip/port

consider for removal
This commit is contained in:
Min RK
2018-04-09 14:47:34 +02:00
parent 9b914e8f01
commit 955b769d3f
2 changed files with 2 additions and 0 deletions

View File

@@ -1096,6 +1096,7 @@ class LocalProcessSpawner(Spawner):
if self.ip:
self.server.ip = self.ip
self.server.port = self.port
self.db.commit()
return (self.ip or '127.0.0.1', self.port)
async def poll(self):

View File

@@ -406,6 +406,7 @@ class User:
if ip_port:
# get ip, port info from return value of start()
server.ip, server.port = ip_port
db.commit()
else:
# prior to 0.7, spawners had to store this info in user.server themselves.
# Handle < 0.7 behavior with a warning, assuming info was stored in db by the Spawner.