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

Merge branch 'dev' into 'test'

trying to find why novnc keeps closing

See merge request !87
parents 659a2ca8 19f83108
No related branches found
No related tags found
2 merge requests!90I think there is a problem with multiple threads creating multiple sessions...,!87trying to find why novnc keeps closing
Pipeline #56722 passed
......@@ -153,7 +153,7 @@ class TWSProxy(threading.Thread):
name = threading.current_thread().name
while not closed:
r,w,e = select.select([src],[],[],TWSProxy.TIMEOUT)
if len(r) > 0:
if len(r) > 0 and (not (type(r) == list)):
buff = None
msglength = -1
try:
......@@ -172,7 +172,6 @@ class TWSProxy(threading.Thread):
TWSProxy.reliablesend(dest,buff,msglength)
if msglength == 0:
logger.debug('socket shutdown, fh ready to read but 0 bytes returned')
logger.debug(r[0],src)
#dest.send(buff)
dest.shutdown(shuttype)
initshutdown.set()
......
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