aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/nat/nat_test.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p/nat: bump timeout in TestAutoDiscRaceFelix Lange2015-05-281-1/+1
|
* p2p/nat: fix concurrent access to autodisc InterfaceFelix Lange2015-05-141-0/+48
Concurrent calls to Interface methods on autodisc could return a "not discovered" error if the discovery did not finish before the call. autodisc.wait expected the done channel to carry the found Interface but it was closed instead. The fix is to use sync.Once for now, which is easier to get right. And there is a test. Finally. This will have to change again when we introduce re-discovery.