diff --git a/src/net45/WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs b/src/net45/WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs index cac566841..fbec81a29 100644 --- a/src/net45/WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs +++ b/src/net45/WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs @@ -114,10 +114,8 @@ public void Goodbye(GoodbyeDetails details, string reason) { mServerProxy.Goodbye(new GoodbyeDetails(), WampErrors.GoodbyeAndOut); } - else - { - mServerProxy.Dispose(); - } + + mServerProxy.Dispose(); TrySetCloseEventArgs(SessionCloseType.Goodbye, details, reason); }