Explorar o código

Avoid possible NRE.

drieseng %!s(int64=9) %!d(string=hai) anos
pai
achega
81fb70798d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));
             }
         }