Ignore exceptions during shutdown()
git-svn-id: file:///home/svn/framework3/trunk@5419 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b2f9397be2
commit
7349c32ec9
|
@ -46,7 +46,7 @@ module Rex::Socket::Tcp
|
||||||
def shutdown(how = ::Socket::SHUT_RDWR)
|
def shutdown(how = ::Socket::SHUT_RDWR)
|
||||||
begin
|
begin
|
||||||
return (super(how) == 0)
|
return (super(how) == 0)
|
||||||
rescue Errno::ENOTCONN
|
rescue ::Exception
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue