minor refactoring
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
bfed7a5dfb
commit
6b07965b9a
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue