diff options
| author | Teddy Wing | 2020-10-10 23:55:58 +0200 |
|---|---|---|
| committer | Teddy Wing | 2020-10-10 23:55:58 +0200 |
| commit | 3e8c1da7eb84548ea783edd04ad4bfbfd490faac (patch) | |
| tree | 43377bd9ca88e3c97d31d893ec9e40eb259d8724 | |
| parent | 415d2d49793f7bbc18e3525be491f91ba972bbd7 (diff) | |
| download | Drop-Serve-3e8c1da7eb84548ea783edd04ad4bfbfd490faac.tar.bz2 | |
Sleep for one second before opening the served page in the browser
Saw during testing that the browser could try to load the page before
the server had started up.
| -rw-r--r-- | Drop Serve/DropZone.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Drop Serve/DropZone.m b/Drop Serve/DropZone.m index 52f6107..df3667c 100644 --- a/Drop Serve/DropZone.m +++ b/Drop Serve/DropZone.m @@ -77,6 +77,8 @@ [_status_view setPath:path]; [_status_view setHidden:NO]; + // Sleep to give the server time to start up before opening the page. + [NSThread sleepForTimeInterval:1]; [Server openInBrowser]; } |
