From 380d8f3d435d26d09a217acee3a3872a6bf3c10e Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Wed, 13 Mar 2019 15:44:05 +0100 Subject: [PATCH] Refactor slightly --- NvimView/NvimView/RxSwiftCommons.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NvimView/NvimView/RxSwiftCommons.swift b/NvimView/NvimView/RxSwiftCommons.swift index f7f491c6..74633edc 100644 --- a/NvimView/NvimView/RxSwiftCommons.swift +++ b/NvimView/NvimView/RxSwiftCommons.swift @@ -87,6 +87,6 @@ extension PrimitiveSequence where TraitType == SingleTrait { } private func broadcast(_ condition: NSCondition) { - defer { condition.unlock() } condition.broadcast() + condition.unlock() }