bine icon indicating copy to clipboard operation
bine copied to clipboard

EnableNetwork ignores `wait` if already enabled

Open karalabe opened this issue 5 years ago • 1 comments

If the node already has networking enabled - but has not yet finished building its circuits - EnableNetwork will abort at https://github.com/cretz/bine/blob/master/tor/tor.go#L370 even if wait set set to true. This might have unintended side effects for code that expects the circuits to be done, e.g. https://github.com/cretz/bine/blob/master/tor/listen.go#L259

karalabe avatar Mar 22 '20 22:03 karalabe

Hrmm, I suppose the fix here is to have enable network check bootstrapped even when already enabled. May still have event part ahead of time set per #40. Will investigate.

cretz avatar Jun 13 '21 02:06 cretz