Skip to content

Commit

Permalink
added session cleanup for dead sessions #633
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Aug 24, 2016
1 parent e3ef029 commit f566ced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/slycat/web/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,8 @@ def get_remotes(hostname):
if slycat.web.server.remote.check_session(session["sid"]):
status = True
msg = "hostname session was found"
else:
session["sessions"][:] = [tup for tup in session["sessions"] if tup["hostname"] != hostname]
except Exception as e:
cherrypy.log.error("could not save session for remotes %s" % e)
return {"status":status, "msg":msg}
Expand Down

0 comments on commit f566ced

Please sign in to comment.