From 7349c32ec9074700b424a39a71662a9b68110b23 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 14 Feb 2008 21:11:57 +0000 Subject: [PATCH] Ignore exceptions during shutdown() git-svn-id: file:///home/svn/framework3/trunk@5419 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/socket/tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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