1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-11 07:22:23 +03:00

Refactor slightly

This commit is contained in:
Tae Won Ha 2017-12-14 21:45:18 +01:00
parent b226bb15a1
commit 9086f04648
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -47,9 +47,9 @@ public class Connection {
}
public func stop() {
locked(with: self.sessionLock) {
self.stopped = true
self.stopped = true
locked(with: self.sessionLock) {
locked(with: self.conditionsLock) {
self.conditions.values.forEach { condition in
locked(with: condition) { condition.broadcast() }