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:
@@ -462,7 +462,9 @@ class TunnelViewModel {
|
||||
}
|
||||
}
|
||||
scratchpad = otherScratchPad
|
||||
changeHandler(peerIndex, changes)
|
||||
if !changes.isEmpty {
|
||||
changeHandler(peerIndex, changes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user