- Timestamp:
- Aug 30, 2010 11:41:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/FTM.cpp
r32084 r32085 136 136 VMMR3DECL(int) FTMR3Term(PVM pVM) 137 137 { 138 if (pVM->ftm.s.master.hShutdownEvent != NIL_RTSEMEVENT) 139 RTSemEventDestroy(pVM->ftm.s.master.hShutdownEvent); 140 if (pVM->ftm.s.hSocket != NIL_RTSOCKET) 141 RTTcpClientClose(pVM->ftm.s.hSocket); 142 if (pVM->ftm.s.standby.hServer) 143 RTTcpServerDestroy(pVM->ftm.s.standby.hServer); 138 144 if (pVM->ftm.s.pszAddress) 139 145 RTMemFree(pVM->ftm.s.pszAddress); 140 146 if (pVM->ftm.s.pszPassword) 141 147 RTMemFree(pVM->ftm.s.pszPassword); 142 if (pVM->ftm.s.hSocket != NIL_RTSOCKET)143 RTTcpClientClose(pVM->ftm.s.hSocket);144 if (pVM->ftm.s.standby.hServer)145 RTTcpServerDestroy(pVM->ftm.s.standby.hServer);146 if (pVM->ftm.s.master.hShutdownEvent != NIL_RTSEMEVENT)147 RTSemEventDestroy(pVM->ftm.s.master.hShutdownEvent);148 148 149 149 PDMR3CritSectDelete(&pVM->ftm.s.CritSect); … … 660 660 * Try connect to the standby machine. 661 661 */ 662 Log(("ftmR3MasterThread: client connect to %s %d\n", pVM->ftm.s.pszAddress, pVM->ftm.s.uPort)); 662 663 rc = RTTcpClientConnect(pVM->ftm.s.pszAddress, pVM->ftm.s.uPort, &pVM->ftm.s.hSocket); 663 664 if (RT_SUCCESS(rc)) 664 665 { 666 Log(("ftmR3MasterThread: CONNECTED\n")); 667 665 668 /* Disable Nagle. */ 666 669 rc = RTTcpSetSendCoalescing(pVM->ftm.s.hSocket, false /*fEnable*/);
Note:
See TracChangeset
for help on using the changeset viewer.