1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix endpoint cnt decline overflow

Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
Lei Jitang 2016-07-14 22:52:44 -04:00
parent 804f93bdff
commit 4999c5707d

View file

@ -143,7 +143,9 @@ retry:
if inc { if inc {
ec.Count++ ec.Count++
} else { } else {
ec.Count-- if ec.Count > 0 {
ec.Count--
}
} }
ec.Unlock() ec.Unlock()