This closes #930
This commit is contained in:
commit
dc8a22250b
|
@ -91,6 +91,7 @@ public class ProtonHandler extends ProtonInitializable {
|
|||
}
|
||||
|
||||
public long tick(boolean firstTick) {
|
||||
synchronized (lock) {
|
||||
if (!firstTick) {
|
||||
try {
|
||||
if (connection.getLocalState() != EndpointState.CLOSED) {
|
||||
|
@ -108,6 +109,7 @@ public class ProtonHandler extends ProtonInitializable {
|
|||
}
|
||||
return transport.tick(TimeUnit.NANOSECONDS.toMillis(System.nanoTime()));
|
||||
}
|
||||
}
|
||||
|
||||
public int capacity() {
|
||||
synchronized (lock) {
|
||||
|
|
Loading…
Reference in New Issue