TunnelViewModel: Don't call peer change handler if there are no changes

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2019-02-05 12:36:34 +05:30
parent 657ec34d19
commit 8a6a60482c
+3 -1
View File
@@ -462,7 +462,9 @@ class TunnelViewModel {
} }
} }
scratchpad = otherScratchPad scratchpad = otherScratchPad
changeHandler(peerIndex, changes) if !changes.isEmpty {
changeHandler(peerIndex, changes)
}
} }
} }