Permalink
Browse files

Fixing location of disposed field

  • Loading branch information...
1 parent a697880 commit ff1ab35aba773a288f3eeb6664c0cc486b9ae8e4 @ayende ayende committed Aug 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Raven.Client.Lightweight/Connection/HttpJsonRequestFactory.cs
@@ -150,7 +150,6 @@ public bool DisableHttpCaching
private readonly ThreadLocal<TimeSpan?> aggressiveCacheDuration = new ThreadLocal<TimeSpan?>(() => null);
private readonly ThreadLocal<bool> disableHttpCaching = new ThreadLocal<bool>(() => false);
- private volatile bool disposed;
#else
[ThreadStatic] private static TimeSpan? aggressiveCacheDuration;
[ThreadStatic] private static bool disableHttpCaching;
@@ -175,6 +174,7 @@ public bool DisableHttpCaching
set { aggressiveCacheDuration = value; }
}
#endif
+ private volatile bool disposed;
internal string GetCachedResponse(HttpJsonRequest httpJsonRequest)
{

0 comments on commit ff1ab35

Please sign in to comment.