diff --git a/lib/rex/socket/tcp.rb b/lib/rex/socket/tcp.rb index 01b94734f8..d23e655296 100644 --- a/lib/rex/socket/tcp.rb +++ b/lib/rex/socket/tcp.rb @@ -46,7 +46,7 @@ module Rex::Socket::Tcp def shutdown(how = ::Socket::SHUT_RDWR) begin return (super(how) == 0) - rescue Errno::ENOTCONN + rescue ::Exception end end