FIx for IsStarted (#93)

This commit is contained in:
Stef Heyenrath
2018-02-28 08:34:57 +01:00
parent 938d3fb095
commit 17741cbc50
3 changed files with 6 additions and 6 deletions

View File

@@ -181,8 +181,6 @@ namespace WireMock.Server
#else
_httpServer = new OwinSelfHost(_options, Urls);
#endif
IsStarted = _httpServer.IsStarted;
Ports = _httpServer.Ports;
_httpServer.StartAsync();
@@ -190,6 +188,8 @@ namespace WireMock.Server
// Fix for 'Bug: Server not listening after Start() returns (on macOS)'
Task.Delay(ServerStartDelay).Wait();
IsStarted = _httpServer.IsStarted;
if (settings.AllowPartialMapping == true)
{
AllowPartialMapping();