Skip to content
Snippets Groups Projects
Commit a3b1165f authored by jsiegle's avatar jsiegle
Browse files

Added code to catch socket exceptions

parent c5daf59c
Branches
Tags
No related merge requests found
......@@ -78,8 +78,14 @@ void WiFiOutput::process(AudioSampleBuffer &buffer,
void WiFiOutput::timerCallback()
{
//std::cout << "FIRE!" << std::endl;
socket.sendTo("hi",2,"169.254.187.27",6000);
try {
socket.sendTo("hi",2,"169.254.1.1",2000);
WiFiOutputEditor* ed = (WiFiOutputEditor*) getEditor();
ed->receivedEvent();
} catch (SocketException &e) {
// don't do anything
}
stopTimer();
WiFiOutputEditor* ed = (WiFiOutputEditor*) getEditor();
ed->receivedEvent();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment