Changeset 32090 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 30, 2010 12:40:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/FTM.cpp
r32089 r32090 137 137 { 138 138 if (pVM->ftm.s.master.hShutdownEvent != NIL_RTSEMEVENT) 139 { 139 140 RTSemEventDestroy(pVM->ftm.s.master.hShutdownEvent); 141 pVM->ftm.s.master.hShutdownEvent = NIL_RTSEMEVENT; 142 } 140 143 if (pVM->ftm.s.hSocket != NIL_RTSOCKET) 144 { 141 145 RTTcpClientClose(pVM->ftm.s.hSocket); 146 pVM->ftm.s.hSocket = NIL_RTSOCKET; 147 } 142 148 if (pVM->ftm.s.standby.hServer) 149 { 143 150 RTTcpServerDestroy(pVM->ftm.s.standby.hServer); 151 pVM->ftm.s.standby.hServer = NULL; 152 } 144 153 if (pVM->ftm.s.pszAddress) 145 154 RTMemFree(pVM->ftm.s.pszAddress); 146 155 if (pVM->ftm.s.pszPassword) 147 156 RTMemFree(pVM->ftm.s.pszPassword); 157 158 pVM->ftm.s.pszAddress = NULL; 159 pVM->ftm.s.pszPassword = NULL; 148 160 149 161 PDMR3CritSectDelete(&pVM->ftm.s.CritSect); … … 987 999 /** @todo deal with the exit code to check if we should activate this standby VM. */ 988 1000 989 RTTcpServerDestroy(pVM->ftm.s.standby.hServer); 990 pVM->ftm.s.standby.hServer = NULL; 1001 if (pVM->ftm.s.standby.hServer) 1002 { 1003 RTTcpServerDestroy(pVM->ftm.s.standby.hServer); 1004 pVM->ftm.s.standby.hServer = NULL; 1005 } 1006 if (rc == VERR_TCP_SERVER_SHUTDOWN) 1007 rc = VINF_SUCCESS; /* ignore this error; the standby process was cancelled. */ 991 1008 } 992 1009 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.