This closes #930

This commit is contained in:
Martyn Taylor 2016-12-16 13:11:01 +00:00
commit dc8a22250b
1 changed files with 14 additions and 12 deletions

View File

@ -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) {