//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)
     }
 }
示例#2
0
        //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
        }