Forcing call to super.close() even if _closing is already set.

This commit is contained in:
Simone Bordet 2011-10-10 19:09:03 +02:00
parent ea56eaff00
commit 3476887f8a
1 changed files with 8 additions and 7 deletions

View File

@ -338,15 +338,16 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
@Override
public void close() throws IOException
{
if (_closing)
return;
_closing=true;
LOG.debug("{} close",_session);
// For safety we always force a close calling super
try
{
_engine.closeOutbound();
process(null,null);
if (!_closing)
{
_closing=true;
LOG.debug("{} close",_session);
_engine.closeOutbound();
process(null,null);
}
}
catch (IOException e)
{