Remove lock from link

This commit is contained in:
Asim Aslam 2019-09-04 18:48:43 +01:00
parent b9a2f719a0
commit d8a1b47954

View File

@ -89,9 +89,6 @@ 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