소스 검색

Avoid possible NRE.

drieseng 9 년 전
부모
커밋
81fb70798d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));
             }
         }