Skip to content

Commit 75a6a85

Browse files
authored
Merge pull request #4890 from dmitrio95/seq-crash
fix #274614, fix #273783: fix crashes on stopping sequencer during soundfond loading
2 parents 0e62032 + 3b67a4f commit 75a6a85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mscore/seq.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ void Seq::start()
345345

346346
void Seq::stop()
347347
{
348-
if (state == Transport::STOP)
348+
const bool seqStopped = (state == Transport::STOP);
349+
const bool driverStopped = !_driver || _driver->getState() == Transport::STOP;
350+
if (seqStopped && driverStopped)
349351
return;
350352

351353
if (oggInit) {

0 commit comments

Comments
 (0)