only start ref change watcher thread once per P2P connection
authorJoey Hess <joeyh@joeyh.name>
Fri, 9 Dec 2016 19:08:54 +0000 (15:08 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 9 Dec 2016 19:08:54 +0000 (15:08 -0400)
commitf7687e087619abc31a06e337e01d00eec84c1798
tree753191da9fcc6ec12db7593b60015f95077ff55d
parente152c322f8d7a2430636f26aa55272773ea1c9da
only start ref change watcher thread once per P2P connection

This is more efficient. Note that the peer will get CHANGED messages for
all refs changed since the connection opened, even if those changes
happened before it sent NOTIFYCHANGE.
P2P/Annex.hs
RemoteDaemon/Transport/Tor.hs