Skip to content

Commit d84f8cb

Browse files
author
David Scott
committed
When cleaning up a VIF, run the hotplug scripts before waiting for them to finish (!)
Fixes xapi-project#19 Signed-off-by: David Scott <dave.scott@eu.citrix.com>
1 parent 51eb8da commit d84f8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xc/device.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,13 +743,13 @@ let set_carrier ~xs (x: device) carrier =
743743

744744
let release (task: Xenops_task.t) ~xs (x: device) =
745745
debug "Device.Vif.release %s" (string_of_device x);
746-
Hotplug.release task ~xs x;
747746

748747
if !Xenopsd.run_hotplug_scripts then begin
749748
let tap = { x with backend = { x.backend with kind = Tap } } in
750749
Hotplug.run_hotplug_script x [ "remove" ];
751750
Hotplug.run_hotplug_script tap [ "remove" ];
752-
end
751+
end;
752+
Hotplug.release task ~xs x
753753

754754

755755
let move ~xs (x: device) bridge =

0 commit comments

Comments
 (0)