Skip to content

Commit 8027884

Browse files
targosnodejs-ci
authored andcommitted
fix SetIdle deprecation
Refs: #46
1 parent 1c6164b commit 8027884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/env.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ void Environment::CleanupHandles() {
241241
void Environment::StartProfilerIdleNotifier() {
242242
uv_prepare_start(&idle_prepare_handle_, [](uv_prepare_t* handle) {
243243
Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle);
244-
env->isolate_data()->GetCpuProfiler()->SetIdle(true);
244+
env->isolate()->SetIdle(true);
245245
});
246246

247247
uv_check_start(&idle_check_handle_, [](uv_check_t* handle) {
248248
Environment* env = ContainerOf(&Environment::idle_check_handle_, handle);
249-
env->isolate_data()->GetCpuProfiler()->SetIdle(false);
249+
env->isolate()->SetIdle(false);
250250
});
251251
}
252252

0 commit comments

Comments
 (0)