if (!EchoIncomingPackets(Sock)) {
LogEvent(_T("Echo: EchoIncomingPackets failed\n"), 0, FALSE);
- RetVal = -1;
+ RetVal = 1;
}
LogEvent(_T("Echo: Shutting connection down...\n"), 0, FALSE);
else
{
LogEvent(_T("Echo: Connection shutdown failed\n"), 0, FALSE);
- RetVal = -1;
+ RetVal = 1;
}
LogEvent(_T("Echo: Terminating thread\n"), 0, FALSE);