Author: rgodfrey
Date: Mon Oct 17 18:32:27 2016
New Revision: 1765349

URL: http://svn.apache.org/viewvc?rev=1765349&view=rev
Log:
QPID-7477 : If a connection is already scheduled, there is no need to 
reschedule it

Modified:
    
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnection.java

Modified: 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnection.java
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnection.java?rev=1765349&r1=1765348&r2=1765349&view=diff
==============================================================================
--- 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnection.java
 (original)
+++ 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnection.java
 Mon Oct 17 18:32:27 2016
@@ -105,7 +105,10 @@ public class NonBlockingConnection imple
             @Override
             public void performAction(final ProtocolEngine object)
             {
-                getScheduler().schedule(NonBlockingConnection.this);
+                if(!_scheduled.get())
+                {
+                    getScheduler().schedule(NonBlockingConnection.this);
+                }
             }
         });
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to