We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad4daea + 50ceb1b commit e4fc80fCopy full SHA for e4fc80f
1 file changed
src/main/java/com/timgroup/statsd/StatsDProcessor.java
@@ -90,6 +90,12 @@ protected void processLoop() {
90
closeSignal.countDown();
91
clientClosed = true;
92
}
93
+ if (clientClosed) {
94
+ // We are draining highPrioMessages, which is a non-blocking
95
+ // queue. Avoid a busy loop if the queue is empty while the aggregator
96
+ // is flushing.
97
+ Thread.sleep(WAIT_SLEEP_MS);
98
+ }
99
continue;
100
101
0 commit comments