mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 15:16:22 +00:00
Set net manager thread to delete itself on close
* Due to the way Qt works, the owning object acts as if it lives on the thread which in this case is running an event loop that tries to delete itself.
This commit is contained in:
@@ -367,6 +367,7 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai
|
||||
delete m_NetWorker;
|
||||
});
|
||||
m_NetManagerThread->moveObjectToThread(m_NetWorker);
|
||||
m_NetManagerThread->selfDelete(true);
|
||||
m_NetManagerThread->start();
|
||||
m_NetManagerThread->thread()->setPriority(QThread::LowPriority);
|
||||
|
||||
@@ -597,7 +598,6 @@ MainWindow::~MainWindow()
|
||||
{
|
||||
// close the network manager thread
|
||||
m_NetManagerThread->thread()->quit();
|
||||
m_NetManagerThread->deleteLater();
|
||||
|
||||
m_Ctx.Replay().DisconnectFromRemoteServer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user