Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move the creation of the configuration to a more natural location

  • Loading branch information...
commit 94cc984fda82ef3ba558f5fdfcd69b45486dcd93 1 parent fafe957
@ayende ayende authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Raven.Web/ForwardToRavenRespondersFactory.cs
View
4 Raven.Web/ForwardToRavenRespondersFactory.cs
@@ -14,7 +14,7 @@ public class ForwardToRavenRespondersFactory : IHttpHandlerFactory
{
private static readonly object locker = new object();
- static readonly RavenConfiguration ravenConfiguration = new RavenConfiguration();
+ static readonly RavenConfiguration ravenConfiguration;
static readonly DocumentDatabase database;
static readonly HttpServer server;
@@ -25,7 +25,7 @@ static ForwardToRavenRespondersFactory()
if (database != null)
return;
-
+ ravenConfiguration = new RavenConfiguration();
HttpServer.RegisterHttpEndpointTarget();
database = new DocumentDatabase(ravenConfiguration);
database.SpinBackgroundWorkers();
Please sign in to comment.
Something went wrong with that request. Please try again.