cjdelisle/cjdns — pull request #475 by Arceliar (2014-03-13 22:02:28+00:00)
Title: Orphaned direct peer bug

This bug is back. If I lose my connection to my direct peers (e.g. wifi disconnect because I walked between buildings, suspending my computer, etc.) then all peers are disconnected as expected. However, after the connection comes back online, direct peers never recover, which prevents all connectivity.

The below 1-line fix is sufficient to get direct peers working again. I don't know if this is the "right" way to fix it (maybe it leaks loop-links into the store?), but I think it's the right condition to check for at least.