Forráskód Böngészése

Avoid possible NRE.

drieseng 9 éve
szülő
commit
81fb70798d
1 módosított fájl, 1 hozzáadás és 1 törlés
  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));
             }
         }