TunnelViewModel: Don't call peer change handler if there are no changes
This commit is contained in:
parent
5e704465a7
commit
63371841af
|
@ -462,7 +462,9 @@ class TunnelViewModel {
|
|||
}
|
||||
}
|
||||
scratchpad = otherScratchPad
|
||||
changeHandler(peerIndex, changes)
|
||||
if !changes.isEmpty {
|
||||
changeHandler(peerIndex, changes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue