Browse Source

Merge pull request #375 from Belorus/patch-1

Update Application.cs
Michael Hixson 12 years ago
parent
commit
ac217d9285
1 changed files with 6 additions and 3 deletions
  1. 6 3
      aspnet/src/Application.cs

+ 6 - 3
aspnet/src/Application.cs

@@ -18,8 +18,11 @@ namespace Benchmarks.AspNet
             {
                 lock (locker)
                 {
-                    Start();
-                    started = true;
+                    if (!started)
+                    {
+                        Start();
+                        started = true;
+                    }
                 }
             }
         }
@@ -84,4 +87,4 @@ namespace Benchmarks.AspNet
         {
         }
     }
-}
+}