From 233e979409248f1be2925d361b4bc049189998fe Mon Sep 17 00:00:00 2001 From: Elad Zelingher Date: Wed, 18 Oct 2017 11:37:08 -0400 Subject: [PATCH] Close connection to server on GOODBYE As some routers (crossbar.io) don't do this. --- .../WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); }