Commit e7d4ee10 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Win: Fix QThread is destroyed while still running warning

parent 774fa494
......@@ -50,6 +50,12 @@ WinDebugInterface::WinDebugInterface(QObject *parent) :
start();
}
WinDebugInterface::~WinDebugInterface()
{
terminate(); // Creator is shutting down anyway, no need to clean up.
wait(500);
}
void WinDebugInterface::run()
{
HANDLE bufferReadyEvent = CreateEvent(NULL, FALSE, FALSE, L"DBWIN_BUFFER_READY");
......
......@@ -46,6 +46,8 @@ class WinDebugInterface : public QThread
public:
explicit WinDebugInterface(QObject *parent = 0);
~WinDebugInterface();
static WinDebugInterface *instance();
signals:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment