mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-03 00:54:42 +03:00
Refactor slightly
This commit is contained in:
parent
b226bb15a1
commit
9086f04648
@ -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() }
|
||||
|
Loading…
Reference in New Issue
Block a user