diff options
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyClient.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index a21a5b7..9f8b4b7 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -381,8 +381,11 @@ namespace IvyBus buffer += "\n";
try
{
- out_stream.Write(buffer);
- out_stream.Flush();
+ if ( out_stream )
+ {
+ out_stream.Write(buffer);
+ out_stream.Flush();
+ }
}
catch (IOException e)
{
|