Skip to content

Commit acbafa8

Browse files
committed
Add an assert for when a group doesn't exist.
1 parent 440d1b9 commit acbafa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Concurrency/WorkService.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ namespace Concurrency {
274274
void WorkService::notifyGroupDestroyed(WorkContractGroup* group) {
275275
// When a group is destroyed, we should remove it from our list
276276
// This is important to prevent accessing a destroyed group
277-
removeWorkContractGroup(group);
277+
auto status = removeWorkContractGroup(group);
278+
ENTROPY_ASSERT(status != GroupOperationStatus::NotFound,
279+
"Group destruction notification for unknown group");
278280
}
279281

280282

0 commit comments

Comments
 (0)