]> git.meshlink.io Git - meshlink/commit
Remove redundant call to graph().
authorGuus Sliepen <guus@meshlink.io>
Sun, 18 Aug 2019 14:54:58 +0000 (16:54 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 18 Aug 2019 14:54:58 +0000 (16:54 +0200)
commit1b6ec78734eff25d6f7ea3e7e75d83a8905bbbf3
tree98f0f87287c0c27667b8d6a70729f474b4795d2c
parentbab00223b01190f844e5af5348efe508c2753833
Remove redundant call to graph().

When we receive an ADD_EDGE for an existing edge but with new information,
don't call graph() between removing the old edge and adding the new one.
This prevents a node from temporarily being considered unreachable, which
in turn would cause the SPTPS state to that node being reset.
src/protocol_edge.c