server/datastore/inmem: fix host removal lock (#1673)

This commit is contained in:
ferhat elmas 2017-12-18 23:38:33 +01:00 committed by Zachary Wasserman
parent 74bd70f54f
commit 1bd622bce7

View file

@ -190,7 +190,7 @@ func (d *Datastore) RemoveLabelFromPack(lid, pid uint) error {
func (d *Datastore) RemoveHostFromPack(hid, pid uint) error {
d.mtx.Lock()
d.mtx.Unlock()
defer d.mtx.Unlock()
var hostsToDelete []uint