Cosmetics.

This commit is contained in:
Simone Bordet 2014-06-24 13:50:52 +02:00
parent e94b8745f2
commit 05616d1e9d
1 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ public class HTTP2FlowControl implements FlowControl
int delta = frame.getWindowDelta(); int delta = frame.getWindowDelta();
if (frame.getStreamId() > 0) if (frame.getStreamId() > 0)
{ {
// The stream may have been reset concurrently.
if (stream != null) if (stream != null)
{ {
int oldSize = stream.updateWindowSize(delta); int oldSize = stream.updateWindowSize(delta);
@ -84,7 +85,7 @@ public class HTTP2FlowControl implements FlowControl
} }
else else
{ {
int oldSize = session.updateWindowSize(frame.getWindowDelta()); int oldSize = session.updateWindowSize(delta);
if (LOG.isDebugEnabled()) if (LOG.isDebugEnabled())
LOG.debug("Updated session window {} -> {} for {}", oldSize, oldSize + delta, session); LOG.debug("Updated session window {} -> {} for {}", oldSize, oldSize + delta, session);
} }