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

This commit is contained in:
Roopesh Chander 2019-02-04 18:57:59 +05:30
parent 5e704465a7
commit 63371841af
1 changed files with 3 additions and 1 deletions

View File

@ -462,7 +462,9 @@ class TunnelViewModel {
}
}
scratchpad = otherScratchPad
changeHandler(peerIndex, changes)
if !changes.isEmpty {
changeHandler(peerIndex, changes)
}
}
}