Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Commit 8338be9

Browse files
authored
Prevent a shutdown hook from being removed when a shutdown is in progress (#689)
Signed-off-by: Tomas Hofman <[email protected]>
1 parent 74adce4 commit 8338be9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jaeger-core/src/main/java/io/jaegertracing/internal/JaegerTracer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ protected JaegerTracer(JaegerTracer.Builder builder) {
133133
shutdownHook = new Thread() {
134134
@Override
135135
public void run() {
136+
shutdownHook = null;
136137
JaegerTracer.this.close();
137138
}
138139
};

0 commit comments

Comments
 (0)