Skip to content

Commit

Permalink
tool_launcher: close all libm2k contexts when disconnecting the M2K.
Browse files Browse the repository at this point in the history
Fix the following scenario in Scopy 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 eeace79 commit fabb1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tool_launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ void adiscope::ToolLauncher::destroyContext()
dev->setConnected(false, false);
if (m_m2k) {
try {
libm2k::context::contextClose(m_m2k);
libm2k::context::contextCloseAll();
} catch (libm2k::m2k_exception &e) {
HANDLE_EXCEPTION(e);
qDebug() << e.what();
Expand Down

0 comments on commit fabb1ec

Please sign in to comment.