Skip to content

Commit

Permalink
Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Dec 8, 2011
1 parent b7fb987 commit 56c2b2f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Raven.Database/Server/HttpServer.cs
Expand Up @@ -487,9 +487,16 @@ private bool DispatchRequest(IHttpContext ctx)
}
finally
{
CurrentOperationContext.Headers.Value = new NameValueCollection();
currentDatabase.Value = DefaultResourceStore;
currentConfiguration.Value = DefaultConfiguration;
try
{
CurrentOperationContext.Headers.Value = new NameValueCollection();
currentDatabase.Value = DefaultResourceStore;
currentConfiguration.Value = DefaultConfiguration;
}
catch
{
// this can happen during system shutdown
}
}
return false;
}
Expand Down

0 comments on commit 56c2b2f

Please sign in to comment.