aboutsummaryrefslogtreecommitdiffstats
path: root/Drop Serve
diff options
context:
space:
mode:
authorTeddy Wing2020-10-10 23:55:58 +0200
committerTeddy Wing2020-10-10 23:55:58 +0200
commit3e8c1da7eb84548ea783edd04ad4bfbfd490faac (patch)
tree43377bd9ca88e3c97d31d893ec9e40eb259d8724 /Drop Serve
parent415d2d49793f7bbc18e3525be491f91ba972bbd7 (diff)
downloadDrop-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.
Diffstat (limited to 'Drop Serve')
-rw-r--r--Drop Serve/DropZone.m2
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];
}