Skip to content
Snippets Groups Projects
Commit 6c9d3eb1 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

scheduler: fix task cancelling

This fix testInviteFromMessageAfterRemoved (hasHandler was
not correct in checkConversationsEvents because the task was not
cancelled anymore).
Fix ut_scheduler's build

Change-Id: I4dbf3b31180c43fb7fa11061f3ffacb492d925c3
parent a0938030
Branches
No related tags found
No related merge requests found
...@@ -148,6 +148,7 @@ public: ...@@ -148,6 +148,7 @@ public:
} }
if (not cont) { if (not cont) {
cancel_.store(true);
job_.reset(); job_.reset();
} }
......
...@@ -46,7 +46,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(SchedulerTest, SchedulerTest::name()); ...@@ -46,7 +46,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(SchedulerTest, SchedulerTest::name());
void void
SchedulerTest::schedulerTest() SchedulerTest::schedulerTest()
{ {
jami::ScheduledExecutor executor; jami::ScheduledExecutor executor("test");
constexpr unsigned N = 1024; constexpr unsigned N = 1024;
std::mutex mtx; std::mutex mtx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment