Przeglądaj źródła

Avoid possible NRE.

drieseng 9 lat temu
rodzic
commit
81fb70798d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Renci.SshNet/ForwardedPort.cs

+ 1 - 1
src/Renci.SshNet/ForwardedPort.cs

@@ -145,7 +145,7 @@ namespace Renci.SshNet
             var handlers = RequestReceived;
             if (handlers != null)
             {
-                RequestReceived(this, new PortForwardEventArgs(host, port));
+                handlers(this, new PortForwardEventArgs(host, port));
             }
         }