races, race conditions everywhere
This commit is contained in:
parent
87de2ecaa0
commit
4e5a568063
@ -206,6 +206,9 @@ func (l *link) Id() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (l *link) Close() error {
|
func (l *link) Close() error {
|
||||||
|
l.Lock()
|
||||||
|
defer l.Unlock()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-l.closed:
|
case <-l.closed:
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user