Commit c470e61c authored by Declara Denis's avatar Declara Denis Committed by Christian Schulte zu Berge
Browse files

Fixed crash on deinit of OpenIgtLinkClient

parent 1a150165
......@@ -83,9 +83,6 @@ namespace campvis {
OpenIGTLinkClient::~OpenIGTLinkClient() {
if (_receiverRunning)
stopReceiver();
if (_receiverThread)
delete _receiverThread;
}
void OpenIGTLinkClient::init() {
......@@ -507,6 +504,7 @@ namespace campvis {
_receiverRunning = false;
delete _receiverThread;
_receiverThread = nullptr;
}
catch (std::exception& e) {
LERRORC("CAMPVis.modules.base.MatrixProcessor", "Caught exception during _thread.join: " << e.what());
......
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