Skip to content
Snippets Groups Projects
Commit 5e67bad9 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'dev' into 'test'

I think there is a problem with multiple threads creating multiple sessions...

See merge request !85
parents 8f85575a fcf64dcc
No related branches found
No related tags found
2 merge requests!90I think there is a problem with multiple threads creating multiple sessions...,!85I think there is a problem with multiple threads creating multiple sessions...
Pipeline #56707 passed
......@@ -233,6 +233,9 @@ class SSHSession:
from .. import sshsessions
from flask import session, request
import logging
import uwsgi
uwsgi.lock()
logger = logging.getLogger()
sshsessid = session.get('sshsessid', None)
N = 8
......@@ -257,6 +260,7 @@ class SSHSession:
SSHSession.test_sshsession(sshsession)
sshsession.refresh()
uwsgi.unlock()
return sshsession
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment