//Attempt to close the response private void TryClose() { try { _responseWriter.Close(); } catch (IOException) { Log.W(TAG, "Error closing HTTP response stream"); } catch (ObjectDisposedException) { //swallow (already closed) } }
//Attempt to close the response private void TryClose() { try { _responseWriter.Close(); Log.To.Router.I(TAG, "Response closed"); } catch (IOException) { Log.To.Router.W(TAG, "Error closing HTTP response stream"); } catch (ObjectDisposedException) { //swallow (already closed) } #if !NET_3_5 finally { _writeLock.Dispose(); } #endif }