Revision: 160
          
http://mindtreeinsight.svn.sourceforge.net/mindtreeinsight/?rev=160&view=rev
Author:   bindul
Date:     2008-04-04 00:19:19 -0700 (Fri, 04 Apr 2008)

Log Message:
-----------
Bug#1931487 [Remote Receiver does not stop]: Added work around to stop both 
receivers when the StopReceiverAction is called.

Modified Paths:
--------------
    insight/insight-ui/branches/insight-ui-1.5.0/README.txt
    
insight/insight-ui/branches/insight-ui-1.5.0/src/main/java/com/mindtree/techworks/insight/gui/action/StopReceiverAction.java

Modified: insight/insight-ui/branches/insight-ui-1.5.0/README.txt
===================================================================
--- insight/insight-ui/branches/insight-ui-1.5.0/README.txt     2008-04-04 
07:10:49 UTC (rev 159)
+++ insight/insight-ui/branches/insight-ui-1.5.0/README.txt     2008-04-04 
07:19:19 UTC (rev 160)
@@ -40,6 +40,7 @@
 
 Bug Fixes:
 1932949: Saving Insight Preferences
+1931487: Remote Receiver does not stop
 
 Feature Requests Implemented:
 1931541: Complete Insight bash script and test it

Modified: 
insight/insight-ui/branches/insight-ui-1.5.0/src/main/java/com/mindtree/techworks/insight/gui/action/StopReceiverAction.java
===================================================================
--- 
insight/insight-ui/branches/insight-ui-1.5.0/src/main/java/com/mindtree/techworks/insight/gui/action/StopReceiverAction.java
        2008-04-04 07:10:49 UTC (rev 159)
+++ 
insight/insight-ui/branches/insight-ui-1.5.0/src/main/java/com/mindtree/techworks/insight/gui/action/StopReceiverAction.java
        2008-04-04 07:19:19 UTC (rev 160)
@@ -75,14 +75,20 @@
 
                AbstractReceiver receiver = LoadLocalFileAction.getInstance ()
                                .getReceiver ();
-               if (null == receiver) {
-                       receiver = RemoteProtocolListenerAction.getInstance ()
-                                       .getReceiver ();
-               }
 
                if (null != receiver) {
                        receiver.shutdown ();
                }
+               
+               // Do the same for the remote protocol receiver
+               // SF.net defect id: 1931487, this is a work around as the 
receivers
+               // from the LoadLocalFileAction is never removed, hence if a 
local file
+               // is loaded first, and then the remote receiver started, in 
the old
+               // way of doing things, the remote receiver can never be 
stopped.
+               receiver = RemoteProtocolListenerAction.getInstance 
().getReceiver ();
+               if (null != receiver) {
+                       receiver.shutdown ();
+               }
        }
 
        /**


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
MindTreeInsight-commits mailing list
MindTreeInsight-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mindtreeinsight-commits

Reply via email to