catch case where interruption can hit us

This commit is contained in:
Jordan Sissel 2012-12-31 15:46:29 -08:00
parent c753f26e59
commit b63cde62c0

View file

@ -73,6 +73,9 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
:client => socket.peer)
end # begin
rescue IOError
# nothing
ensure
begin
socket.close
rescue IOError