{\r
EFI_STATUS Status;\r
\r
+ IpSb->State = IP4_SERVICE_DESTROY;\r
+\r
+ if (IpSb->Timer != NULL) {\r
+ gBS->SetTimer (IpSb->Timer, TimerCancel, 0);\r
+ gBS->CloseEvent (IpSb->Timer);\r
+\r
+ IpSb->Timer = NULL;\r
+ }\r
+\r
if (IpSb->DefaultInterface != NULL) {\r
Status = Ip4FreeInterface (IpSb->DefaultInterface, NULL);\r
\r
IpSb->MnpChildHandle = NULL;\r
}\r
\r
- if (IpSb->Timer != NULL) {\r
- gBS->SetTimer (IpSb->Timer, TimerCancel, 0);\r
- gBS->CloseEvent (IpSb->Timer);\r
-\r
- IpSb->Timer = NULL;\r
- }\r
-\r
if (IpSb->ReconfigEvent != NULL) {\r
gBS->CloseEvent (IpSb->ReconfigEvent);\r
\r
\r
} else if (IsListEmpty (&IpSb->Children)) {\r
State = IpSb->State;\r
- IpSb->State = IP4_SERVICE_DESTROY;\r
-\r
//\r
// OK, clean other resources then uninstall the service binding protocol.\r
//\r