From 1ca2d6f57a3135cb154dca1c513c07114697c687 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Thu, 29 Jun 2006 19:52:10 +0000 Subject: [PATCH] http://issues.apache.org/activemq/browse/AMQ-781 git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@418124 13f79535-47bb-0310-9956-ffa450edef68 --- .../discovery/multicast/MulticastDiscoveryAgent.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java b/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java index 310e457fc0..5e27aa465b 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java @@ -256,10 +256,12 @@ public class MulticastDiscoveryAgent implements DiscoveryAgent,Runnable{ String str=new String(packet.getData(),packet.getOffset(),packet.getLength()); processData(str); } - }catch(SocketTimeoutException se){ + } catch(SocketTimeoutException se){ // ignore - }catch(IOException e){ - log.error("failed to process packet: "+e); + } catch(IOException e){ + if( started.get() ) { + log.error("failed to process packet: "+e); + } } } }