/* Stop and destroy the heartbeat timer for TCP driver.  */
VOID TcpDestroyTimer(VOID)
/* Stop and destroy the heartbeat timer for TCP driver.  */
VOID TcpDestroyTimer(VOID)
{
  ASSERT (mTcpTimer.RefCnt > 0);
  mTcpTimer.RefCnt--;
  if (mTcpTimer.RefCnt > 0) {
    return;
  }
  gBS->SetTimer (mTcpTimer.TimerEvent, TimerCancel, 0);
  gBS->CloseEvent (mTcpTimer.TimerEvent);
  mTcpTimer.TimerEvent = NULL;
}