Ignore exceptions during shutdown()

git-svn-id: file:///home/svn/framework3/trunk@5419 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-02-14 21:11:57 +00:00
parent b2f9397be2
commit 7349c32ec9
1 changed files with 1 additions and 1 deletions

View File

@ -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