Skip to content

Commit 0dc49a8

Browse files
authored
fix(test framework): a finished signal could be emitted twice (owncloud#12097)
Fix test framework: a finished signal could be emitted twice
1 parent 22187f2 commit 0dc49a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/testutils/syncenginetestutils.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ void FakeGetReply::respond()
661661
// It can happen that this job is cancelled before the full data is read, and the job is aborted. This being the test framework, processing happens
662662
// synchronously, so between the signals above and here, the job can get aborted, which emits the finished signal. So do NOT emit it again if
663663
// this is the case.
664+
setFinished(true);
664665
Q_EMIT finished();
665666
}
666667
}

0 commit comments

Comments
 (0)