diff options
Diffstat (limited to 'Ivy/IvyTCPStreamV3.cs')
-rw-r--r-- | Ivy/IvyTCPStreamV3.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Ivy/IvyTCPStreamV3.cs b/Ivy/IvyTCPStreamV3.cs index 6c23726..aa76e93 100644 --- a/Ivy/IvyTCPStreamV3.cs +++ b/Ivy/IvyTCPStreamV3.cs @@ -35,8 +35,10 @@ namespace IvyBus {
this.output.Close();
this.input.Close();
- this.Socket.Shutdown(SocketShutdown.Both);
+ if ( this.Socket != null ) // Correct problem in Mono ( under linux )
+ this.Socket.Shutdown(SocketShutdown.Both);
base.Close();
+
}
/* the protocol magic numbers */
|