registry: unsubscribe with voidRegisrtyItem fix

This commit is contained in:
mmatczuk 2017-04-28 10:18:14 +02:00
parent 5c54b16fd1
commit bfd6f04e13

View file

@ -102,9 +102,6 @@ func (r *registry) Unsubscribe(identifier id.ID) *RegistryItem {
if !ok {
return nil
}
if i == voidRegistryItem {
return nil
}
if i.Hosts != nil {
for _, h := range i.Hosts {