send: do not unlock already freed object

This commit is contained in:
Jason A. Donenfeld 2018-10-18 18:15:24 +02:00
parent 738d027f0b
commit 8be1fc9c00

View file

@ -562,7 +562,6 @@ func (peer *Peer) RoutineSequentialSender() {
elem.Drop()
}
device.PutOutboundElement(elem)
elem.mutex.Unlock()
}
default:
goto out