Fix potential crash
This commit is contained in:
committed by
craig.p.drummond
parent
641a5d5404
commit
0b110cd0fb
@@ -66,9 +66,7 @@ void UmsDevice::toggle()
|
||||
{
|
||||
if (solidDev.isValid() && access && access->isValid()) {
|
||||
if (access->isAccessible()) {
|
||||
if (scanner) {
|
||||
scanner->stop();
|
||||
}
|
||||
stopScanner();
|
||||
access->teardown();
|
||||
} else {
|
||||
access->setup();
|
||||
|
||||
Reference in New Issue
Block a user