I2CP: Wait for queue space on internal queue close()

reported by: bottomlineit.co.za
This commit is contained in:
zzz committed 2026-05-01 13:10:19 -04:00
1 parent 1595bbabd9
commit 41647e94f0
1 file changed
+5 -2
@@ -53,9 +53,12 @@ public abstract class I2CPMessageQueue implements Closeable {
public abstract I2CPMessage take() throws InterruptedException;
/**
* == offer(new PoisonI2CPMessage());
* == put(new PoisonI2CPMessage());
* Blocking if queue is full
*/
public void close() {
offer(new PoisonI2CPMessage());
try {
put(new PoisonI2CPMessage());
} catch (InterruptedException ie) {}
}
}