Skip to content

Commit b6ca06a

Browse files
authored
Merge pull request #30 from guusw/stop_null_fix
Fix crash on call to SarAsioWrapper::stop before SarAsioWrapper::start
2 parents 77cae62 + 68599b3 commit b6ca06a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SarAsio/wrapper.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ AsioStatus SarAsioWrapper::stop()
9494
return AsioStatus::OK;
9595
}
9696

97-
_sar->stop();
97+
if(_sar)
98+
_sar->stop();
99+
98100
return _innerDriver->stop();
99101
}
100102

0 commit comments

Comments
 (0)