Permalink
Browse files

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

  • Loading branch information...
1 parent ea56eaf commit 3476887f8a1e2281d9ec7ea85a0d3f4dd5017cc8 @sbordet sbordet committed Oct 10, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
@@ -338,15 +338,16 @@ else if (c<0 && sent==0)
@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)
{

0 comments on commit 3476887

Please sign in to comment.