Browse Source

Avoid possible NRE.

drieseng 9 năm trước cách đây
mục cha
commit
81fb70798d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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));
             }
         }