--- loncom/loncnew 2003/12/15 23:30:57 1.36 +++ loncom/loncnew 2003/12/16 16:12:19 1.37 @@ -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 @@ sub KillSocket { } 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. #