This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler: goroutine ssntp Stop() in test case
The tests propagate event results through channels. Writers to channels block until a reader reads. The reader of a node disconnect event result doesn't start to read untils the reader code (after the server stop call) actually runs, which it wont do if the server stop is not a go routine. If the stop code is blocked on sending to the channel and the reader only runs when the stop code is complete (ie: because it is not stopping in a goroutine) there's going to be a deadlock. Signed-off-by: Tim Pepper <[email protected]>
- Loading branch information