Skip to content

Commit cf48ab8

Browse files
committed
Merge branch 'bugfix/ZSTAC-82274' into '5.5.6'
<fix>[thread]: guard Context.current() with telemetry check See merge request zstackio/zstack!9201
2 parents ba18569 + 91a56dc commit cf48ab8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/zstack/core/thread/DispatchQueueImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private class SyncTaskFuture<T> extends AbstractFuture<T> {
302302

303303
public SyncTaskFuture(SyncTask<T> task) {
304304
super(task);
305-
this.parentContext = Context.current();
305+
this.parentContext = isTelemetryEnabled() ? Context.current() : null;
306306
}
307307

308308
private SyncTask getTask() {

0 commit comments

Comments
 (0)