Skip to content

Commit

Permalink
Merge pull request openshift#41 from rajatchopra/master
Browse files Browse the repository at this point in the history
return if error is a stop by user event
  • Loading branch information
Mrunal Patel committed Mar 9, 2015
2 parents b3705e7 + 48efe01 commit b0ebf57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ func (sub *EtcdSubnetRegistry) WatchMinions(rev uint64, receiver chan *MinionEve
log.Infof("Watching %s for new minions.", key)
for {
resp, err := sub.watch(key, rev, stop)
if err != nil && err == etcd.ErrWatchStoppedByUser {
log.Infof("New subnet event error: %v", err)
return err
}
if resp == nil || err != nil {
continue
}
Expand Down

0 comments on commit b0ebf57

Please sign in to comment.