Skip to content

Commit 7578073

Browse files
authored
Compare pointers rather than ids in Scheduler::notifyExecutorShutdown (#144)
1 parent 8c2ddef commit 7578073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scheduler/Scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void Scheduler::notifyExecutorShutdown(Executor* exec,
172172
int execIdx = -1;
173173
std::vector<std::shared_ptr<Executor>>& thisExecutors = executors[funcStr];
174174
for (int i = 0; i < thisExecutors.size(); i++) {
175-
if (thisExecutors.at(i)->id == exec->id) {
175+
if (thisExecutors.at(i).get() == exec) {
176176
execIdx = i;
177177
break;
178178
}

0 commit comments

Comments
 (0)