From 5ced381097628fe22cfc165b2f3e69939bcd4a55 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 13 Feb 2013 14:54:39 -0800 Subject: [PATCH] store number of sentBytes returned from UDPSocket --- mixer/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixer/src/main.cpp b/mixer/src/main.cpp index e4a10c840d..7fa69dfee1 100644 --- a/mixer/src/main.cpp +++ b/mixer/src/main.cpp @@ -195,7 +195,7 @@ void *sendBufferThread(void *args) } - audioSocket->send(agents[a].address, agents[a].port, (void *) clientMix, BUFFER_LENGTH_BYTES); + sentBytes = audioSocket->send(agents[a].address, agents[a].port, (void *) clientMix, BUFFER_LENGTH_BYTES); if (sentBytes < BUFFER_LENGTH_BYTES) { std::cout << "Error sending mix packet! " << sentBytes << strerror(errno) << "\n";