fixed locking when closing 1-wire bus

This commit is contained in:
Max Matveev 2016-02-06 01:03:26 -08:00
parent 4a75b30fcc
commit 6e7e0c31bd
1 changed files with 0 additions and 2 deletions

View File

@ -180,8 +180,6 @@ func (b *w1Bus) Close() error {
}
func (d *w1Device) Close() error {
d.bus.Mu.Lock()
defer d.bus.Mu.Unlock()
if !d.initialized {
return nil