Skip to content

Commit ac1e099

Browse files
authored
Stop internal exception on close (#2)
Stream can be closed twice causing an exception Currently code traps this exception but there was no need for it in the fristr place.
1 parent b9ccf0a commit ac1e099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/nanoFramework.System.Net.Http/Http/System.Net._OutputNetworkStreamWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public override void Close()
129129
m_headersSend();
130130
}
131131

132-
m_Stream.Close();
132+
if (m_Stream != null) m_Stream.Close();
133133
m_Stream = null;
134134
m_Socket = null;
135135
}

0 commit comments

Comments
 (0)