Skip to content

Commit

Permalink
m2kplugin: close all libm2k contexts when disconnecting the M2K from …
Browse files Browse the repository at this point in the history
…Scopy

Fix the following scenario in the m2kplugin using libm2kv0.8.0: connect,
disconnect, connect again - fails due to improper libm2k context deletion.
See PR #1553 for more details on this issue.

Signed-off-by: AlexandraTrifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed Mar 20, 2024
1 parent d48c9e6 commit ce5f28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/m2k/src/m2kcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void M2kController::disconnectM2k()
if(identifyTask && identifyTask->isRunning()) {
identifyTask->requestInterruption();
}
contextClose(m_m2k, true);
contextCloseAll();
} catch(std::exception &ex) {
qDebug(CAT_M2KPLUGIN) << ex.what();
}
Expand Down

0 comments on commit ce5f28f

Please sign in to comment.