Skip to content

Commit

Permalink
[Collections] TimeBasedCache will now actually close
Browse files Browse the repository at this point in the history
  • Loading branch information
David Wolinsky committed Oct 28, 2010
1 parent 71806f4 commit f49f9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Brunet/Collections/TimeBasedCache.cs
Expand Up @@ -161,7 +161,7 @@ public bool TryGetValue(K key, out V value, out bool update)
/// <summary> Must stop the Recycling thread.</summary>
public void Stop()
{
if(System.Threading.Interlocked.Exchange(ref _stopped, 1) == 0) {
if(System.Threading.Interlocked.Exchange(ref _stopped, 1) == 1) {
return;
}

Expand Down

0 comments on commit f49f9d8

Please sign in to comment.