Ignore errors on shutdown for the relay

git-svn-id: file:///home/svn/framework3/trunk@7795 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-12-10 06:09:15 +00:00
parent 2a5a5207f5
commit d2694ce5b9
1 changed files with 8 additions and 2 deletions

View File

@ -83,11 +83,17 @@ class LocalRelay
end
def shutdown
listener.shutdown if (listener)
begin
listener.shutdown if (listener)
rescue ::Exception
end
end
def close
listener.close if (listener)
begin
listener.close if (listener)
rescue ::Exception
end
listener = nil
end