X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsigsession.cpp;h=ac9c052b3bf9b8d50e66adac02efc670359fac4d;hb=ab973f4729258b729d2aa84abfa14b61609fa35e;hp=201892889abf97d05823529d8d3cf7e191eb0a2b;hpb=7f255cd64e5dd166188b1f1ae991d13b89adfe61;p=pulseview.git diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 2018928..ac9c052 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();