Fixes OSX compilation issues.

This commit is contained in:
Krunoslav Zaher 2016-08-04 10:48:36 +02:00
parent 2ead37809e
commit 01d86ff684
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ class ViewController: OSViewController {
}
deinit {
#if TRACE_RESOURCES
#if TRACE_RESOURCES && os(iOS)
print("View controller disposed with \(resourceCount) resources")
/*
@ -79,8 +79,8 @@ class ViewController: OSViewController {
If somebody knows more about why this delay happens, you can make a PR with explanation here.
*/
let when = DispatchTime.now() + DispatchTimeInterval.milliseconds(2)
mainQueue.after(when: when) {
let when = DispatchTime.now() + DispatchTimeInterval.milliseconds(20)
mainQueue.after (when: when) {
/*
Some small additional period to clean things up. In case there were async operations fired,