diff --git a/ipam/allocator.go b/ipam/allocator.go index 9a4015d1..d60872ac 100644 --- a/ipam/allocator.go +++ b/ipam/allocator.go @@ -421,7 +421,6 @@ func (alloc *Allocator) Shutdown() { alloc.persistRing() alloc.space.Clear() alloc.gossip.GossipBroadcast(alloc.Gossip()) - time.Sleep(100 * time.Millisecond) } doneChan <- struct{}{} } diff --git a/weave b/weave index 76ebe589..72547100 100755 --- a/weave +++ b/weave @@ -2308,6 +2308,7 @@ EOF plugin_disabled || util_op remove-plugin-network weave || warn_plugin_active warn_if_stopping_proxy_in_env call_weave DELETE /peer >/dev/null 2>&1 || true + fractional_sleep 0.5 # Allow some time for broadcast updates to go out for NAME in $PLUGIN_CONTAINER_NAME $CONTAINER_NAME $PROXY_CONTAINER_NAME ; do docker stop $NAME >/dev/null 2>&1 || true docker rm -f $NAME >/dev/null 2>&1 || true