perfsonar-dev - perfsonar: r3878 - trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription
Subject: perfsonar development work
List archive
perfsonar: r3878 - trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription
Chronological Thread
- From:
- To:
- Subject: perfsonar: r3878 - trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription
- Date: Tue, 27 May 2008 09:14:57 -0400
Author: michael.bischoff
Date: 2008-05-27 09:14:56 -0400 (Tue, 27 May 2008)
New Revision: 3878
Modified:
trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription/ZebedeeTunnel.java
Log:
Fix: for unsubscribe failing with "Only one listener can be attached",
unsettign a listener didn't work.
Modified:
trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription/ZebedeeTunnel.java
===================================================================
---
trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription/ZebedeeTunnel.java
2008-05-26 17:12:56 UTC (rev 3877)
+++
trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription/ZebedeeTunnel.java
2008-05-27 13:14:56 UTC (rev 3878)
@@ -15,8 +15,10 @@
}
public void setListener(Listener listener) {
- if(this.listener!=null) throw new IllegalStateException("Only
one listener can be attached");
- this.listener = listener;
+ if(this.listener==null || listener==null) {
+ this.listener = listener;
+ }
+ throw new IllegalStateException("Only one listener can be
attached");
}
public void close() {
- perfsonar: r3878 - trunk/surfnet_java-flowsubscription-mp/src/main/java/org/perfsonar/service/measurementPoint/flowsubscription, svnlog, 05/27/2008
Archive powered by MHonArc 2.6.16.