minor refactoring

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-03-18 18:23:40 +01:00 committed by Simone Bordet
parent bfed7a5dfb
commit 6b07965b9a
1 changed files with 3 additions and 3 deletions

View File

@ -262,10 +262,10 @@ public class QuicSession // TODO: extends ContainerLifeCycle and move the EWYK s
long nextTimeoutInMs = quicheConnection.nextTimeout();
if (LOG.isDebugEnabled())
LOG.debug("next quiche timeout: {} ms", nextTimeoutInMs);
if (nextTimeoutInMs > -1)
timeout.schedule(nextTimeoutInMs, TimeUnit.MILLISECONDS);
else
if (nextTimeoutInMs < 0)
timeout.cancel();
else
timeout.schedule(nextTimeoutInMs, TimeUnit.MILLISECONDS);
if (drained == 0)
{
if (quicheConnection.isConnectionClosed())