Show
Ignore:
Timestamp:
02/26/08 08:27:16 PM (11 months ago)
Author:
octorian
Message:

Attempt to reopen dead connections (#65)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/util/Connection.java

    r192 r200  
    195195     */ 
    196196    public void close() throws IOException { 
    197         if(input != null) { 
    198             input.close(); 
     197        try { 
     198            if(input != null) { 
     199                input.close(); 
     200                input = null; 
     201            } 
     202        } catch (Exception exp) { 
    199203            input = null; 
    200204        } 
    201         if(output != null) { 
    202             output.close(); 
     205        try { 
     206            if(output != null) { 
     207                output.close(); 
     208                output = null; 
     209            } 
     210        } catch (Exception exp) { 
    203211            output = null; 
    204212        } 
    205         if(socket != null) { 
    206             socket.close(); 
     213        try { 
     214            if(socket != null) { 
     215                socket.close(); 
     216                socket = null; 
     217            } 
     218        } catch (Exception exp) { 
    207219            socket = null; 
    208220        }