Commit b696535b authored by Julian Bouzas's avatar Julian Bouzas
Browse files

global-proxy: destroy pw_proxy if error happened while binding

parent 827d21cd
Pipeline #333799 passed with stages
in 1 minute and 16 seconds
......@@ -221,6 +221,9 @@ wp_global_proxy_activate_execute_step (WpObject * object,
wp_global_proxy_step_bind (object, transition, step, missing);
break;
case WP_TRANSITION_STEP_ERROR:
/* destroy the proxy if error happened while binding */
if (missing | WP_PROXY_FEATURE_BOUND)
wp_proxy_destroy_pw_proxy (WP_PROXY (object));
break;
default:
g_assert_not_reached ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment