diff --git a/lib/rex/services/local_relay.rb b/lib/rex/services/local_relay.rb index cfa1ecc5d2..69d28aa6b2 100644 --- a/lib/rex/services/local_relay.rb +++ b/lib/rex/services/local_relay.rb @@ -263,9 +263,12 @@ protected def close_relay(relay) self.rfds.delete(relay.listener) self.relays.delete(relay.name) - - relay.shutdown - relay.close + + begin + relay.shutdown + relay.close + rescue IOError + end end #