dont keepalive if we're in the closing process (duh)

This commit is contained in:
jrandom
2004-11-08 16:49:23 +00:00
committed by zzz
parent 07626b5cc2
commit 53f3802a81

View File

@ -462,6 +462,8 @@ public class Connection {
if (getUnackedPacketsSent() > 0) return; if (getUnackedPacketsSent() > 0) return;
// wtf, this shouldn't have been scheduled // wtf, this shouldn't have been scheduled
if (_options.getInactivityTimeout() <= 0) return; if (_options.getInactivityTimeout() <= 0) return;
// if one of us can't talk...
if ( (_closeSentOn > 0) || (_closeReceivedOn > 0) ) return;
// bugger it, might as well do the hard work now // bugger it, might as well do the hard work now
switch (_options.getInactivityAction()) { switch (_options.getInactivityAction()) {