wasSharpNET

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 26  →  ?path2? @ 27
/Console/ConsoleSpin.cs
@@ -19,7 +19,7 @@
public class ConsoleSpin : IDisposable
{
private static readonly CircularQueue<string> spinArt =
new CircularQueue<string>(new[] { ".oOo", "oOo.", "Oo.o", "o.oO" });
new CircularQueue<string>(new[] {".oOo", "oOo.", "Oo.o", "o.oO"});
 
private static readonly ManualResetEvent spinEvent = new ManualResetEvent(false);
private static Thread spinThread;
@@ -59,8 +59,8 @@
{
run = false;
spinEvent.Reset();
if ((!spinThread.ThreadState.Equals(ThreadState.Running) &&
!spinThread.ThreadState.Equals(ThreadState.WaitSleepJoin)) || spinThread.Join(1000))
if (!spinThread.ThreadState.Equals(ThreadState.Running) &&
!spinThread.ThreadState.Equals(ThreadState.WaitSleepJoin) || spinThread.Join(1000))
return;
spinThread.Abort();
spinThread.Join();
@@ -86,4 +86,4 @@
spinEvent.Reset();
}
}
}
}