Added comment to while loop
This commit is contained in:
parent
dfb888d3ef
commit
ae55708d00
@ -200,11 +200,11 @@ namespace sscs.common
|
|||||||
while(etor.MoveNext())
|
while(etor.MoveNext())
|
||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
/*
|
/*
|
||||||
CSSSLogger.DbgLog("Listing Active User Sessions");
|
CSSSLogger.DbgLog("Listing Active User Sessions");
|
||||||
Console.WriteLine(etor.Key);
|
Console.WriteLine(etor.Key);
|
||||||
Console.WriteLine((((SecretStore)(etor.Value)).secretStoreName + ":" + ((SecretStore)(etor.Value)).refCount);
|
Console.WriteLine((((SecretStore)(etor.Value)).secretStoreName + ":" + ((SecretStore)(etor.Value)).refCount);
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
mutex.ReleaseMutex();
|
mutex.ReleaseMutex();
|
||||||
}
|
}
|
||||||
@ -292,15 +292,18 @@ namespace sscs.common
|
|||||||
// Read the standard output of the spawned process.
|
// Read the standard output of the spawned process.
|
||||||
string myString = myStreamReader.ReadLine();
|
string myString = myStreamReader.ReadLine();
|
||||||
int numProcs = 0;
|
int numProcs = 0;
|
||||||
|
|
||||||
|
// determine if user has more than 1 process still running
|
||||||
while( myString != null)
|
while( myString != null)
|
||||||
{
|
{
|
||||||
if(numProcs > 1)
|
if(numProcs > 1)
|
||||||
|
{
|
||||||
break;
|
break;
|
||||||
numProcs++;
|
|
||||||
|
|
||||||
myString = myStreamReader.ReadLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
numProcs++;
|
||||||
|
myString = myStreamReader.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@ -340,10 +343,10 @@ namespace sscs.common
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}while(false);
|
}while(false);
|
||||||
/*
|
/*
|
||||||
myProcess.Close();
|
myProcess.Close();
|
||||||
myStreamReader.Close();
|
myStreamReader.Close();
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user