Skip to content

Commit

Permalink
Fixing #150
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Zelingher committed Oct 22, 2016
1 parent bbb2422 commit d57d93f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ private void OnConnectionOpen(object sender, EventArgs e)

public void Dispose()
{
mConnection.Dispose();
IControlledWampConnection<TMessage> connection = mConnection;

if (connection != null)
{
connection.Dispose();
}
}

public void Send(WampMessage<object> message)
Expand Down

0 comments on commit d57d93f

Please sign in to comment.