ソースを参照

Did a change with RPC that probably won't do anything

Kenric Nugteren 1 年間 前
コミット
0bf7c65ad7

+ 3 - 2
InABox.Client.RPC/Transports/Socket/RPCClientSocketTransport.cs

@@ -176,10 +176,11 @@ namespace InABox.Rpc
 
         private void Client_Closed(object sender, EventArgs e)
         {
+            var wasConnected = _connected;
+            _connected = false;
             openEvent.Set();
-            if (_connected)
+            if (wasConnected)
             {
-                _connected = false;
                 DoClose(RpcTransportCloseEventType.Closed);
             }
         }