Skip to content

Commit d4f16db

Browse files
committed
[direct-io-pubsub] set executor to null after close() in PubSubWriter
1 parent 0706025 commit d4f16db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

direct/io-pubsub/module/src/main/java/cz/o2/proxima/direct/io/pubsub/AbstractPubSubWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public synchronized void close() {
142142
}
143143
executor.shutdown();
144144
executor.awaitTermination(10, TimeUnit.SECONDS);
145+
executor = null;
145146
publisher.shutdown();
146147
} catch (Exception ex) {
147148
log.warn("Failed to shutdown publisher {}", publisher, ex);

0 commit comments

Comments
 (0)