205 |
|
catch(IOException e) { |
206 |
|
// if we get an exception, the client has probably left, so we stop |
207 |
|
run=false; |
208 |
– |
// and we'd better check if we have a DataHandler to clean up |
209 |
– |
if(closeData()) { |
210 |
– |
_logger.write(toString(), Logger.DEBUG, "Data stream stopped due to fatal client error"); |
211 |
– |
} |
208 |
|
_logger.write(toString(), Logger.FATAL, "Fatal communication error, shutdown pending"); |
209 |
|
} |
210 |
+ |
} |
211 |
+ |
// we'll close any DataHandlers here that shouldn't be open still |
212 |
+ |
if(closeData()) { |
213 |
+ |
_logger.write(toString(), Logger.DEBUG, "Data stream stopped due to fatal client error"); |
214 |
|
} |
215 |
|
_logger.write(toString(), Logger.DEBUG, "Shutting down Control Handler, client has gone."); |
216 |
|
} |