fixing how recvData is invoked in tsmain.cpp