Fix - changed usage of QThread to threading.Thread

Apparently QThread is making problems on some non-gui linux distros
This commit is contained in:
petr.kalis 2020-07-08 16:14:07 +02:00
parent d6485030b5
commit a29c84e9af

View file

@ -1,6 +1,6 @@
from pype.api import config, Logger
from Qt import QtCore
import threading
from aiohttp import web, WSCloseCode
import asyncio
import weakref
@ -93,7 +93,7 @@ class WebSocketServer():
message='Server shutdown')
class WebsocketServerThread(QtCore.QThread):
class WebsocketServerThread(threading.Thread):
""" Listener for websocket rpc requests.
It would be probably better to "attach" this to main thread (as for