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

This commit is contained in:
jrandom authored and zzz committed 2004-11-08 16:49:23 +00:00
1 parent 07626b5cc2
commit 53f3802a81
1 file changed
+2
@@ -462,6 +462,8 @@ public class Connection {
if (getUnackedPacketsSent() > 0) return;
// wtf, this shouldn't have been scheduled
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
switch (_options.getInactivityAction()) {