Fixed locking.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2023-11-28 15:57:19 +01:00
parent b77a8054a2
commit 573ea67cda
No known key found for this signature in database
GPG Key ID: 1677D141BCF3584D
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ public class HTTP2Stream implements IStream, Callback, Dumpable, CyclicTimeouts.
@Override @Override
public InvocationType getInvocationType() public InvocationType getInvocationType()
{ {
synchronized (this) try (AutoLock ignored = lock.lock())
{ {
return sendCallback != null ? sendCallback.getInvocationType() : Callback.super.getInvocationType(); return sendCallback != null ? sendCallback.getInvocationType() : Callback.super.getInvocationType();
} }