X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsigsession.cpp;h=ac9c052b3bf9b8d50e66adac02efc670359fac4d;hp=201892889abf97d05823529d8d3cf7e191eb0a2b;hb=ab973f4729258b729d2aa84abfa14b61609fa35e;hpb=e9213170687cf4afd14e20acdc690ff9381d94ae diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 20189288..ac9c052b 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -100,6 +100,9 @@ void SigSession::set_device( { using pv::device::Device; + if (!dev_inst) + return; + // Ensure we are not capturing before setting the device stop_capture();