[LON-CAPA-cvs] cvs: loncom / loncnew

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 16 Dec 2003 16:12:19 -0000


albertel		Tue Dec 16 11:12:19 2003 EDT

  Modified files:              
    /loncom	loncnew 
  Log:
  - better fix for handling the connection Count issue
  
  
Index: loncom/loncnew
diff -u loncom/loncnew:1.36 loncom/loncnew:1.37
--- loncom/loncnew:1.36	Mon Dec 15 18:30:57 2003
+++ loncom/loncnew	Tue Dec 16 11:12:19 2003
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # lonc maintains the connections to remote computers
 #
-# $Id: loncnew,v 1.36 2003/12/15 23:30:57 albertel Exp $
+# $Id: loncnew,v 1.37 2003/12/16 16:12:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -655,9 +655,9 @@
     }
     if(exists($ActiveConnections{$Socket})) {
 	delete($ActiveConnections{$Socket});
+	$ConnectionCount--;
+	if ($ConnectionCount < 0) { $ConnectionCount = 0; }
     }
-    $ConnectionCount--;
-    if ($ConnectionCount < 0) { $ConnectionCount = 0; }
     #  If the connection count has gone to zero and there is work in the
     #  work queue, the work all gets failed with con_lost.
     #