Merge pull request #2932 from weaveworks/issues/fix-protect-against-docker-hang

Fix protect_against_docker_hang
This commit is contained in:
Bryan Boreham authored and GitHub committed 2017-05-05 17:31:20 +01:00
commit f7130b8c21
1 file changed
+1 -1
+1 -1
View File
@@ -1442,7 +1442,7 @@ stop_proxy() {
protect_against_docker_hang() {
# If the plugin is not running, remove its socket so Docker doesn't try to talk to it
if ! is_plugin_v2_enabled 2>/dev/null ; then
if [ ! is_plugin_v1_enabled ] && [ ! is_plugin_v2_enabled ] ; then
rm -f $HOST_ROOT/run/docker/plugins/weave.sock $HOST_ROOT/run/docker/plugins/weavemesh.sock
fi
}