Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/enix/Fleck into composable
Browse files Browse the repository at this point in the history
  • Loading branch information
statianzo committed Sep 28, 2011
2 parents d2780d4 + 43cb016 commit 3151c0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Fleck/SocketWrapper.cs
Expand Up @@ -86,14 +86,14 @@ public Task<ISocket> Accept(Action<ISocket> callback, Action<Exception> error)

public void Dispose()
{
_stream.Dispose();
_socket.Dispose();
if (_stream != null) _stream.Dispose();
if (_socket != null) _socket.Dispose();
}

public void Close()
{
_stream.Close();
_socket.Close();
if (_stream != null) _stream.Close();
if (_socket != null) _socket.Close();
}

public int EndSend(IAsyncResult asyncResult)
Expand Down

0 comments on commit 3151c0f

Please sign in to comment.