aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 57e3ced..1ce1e56 100644
--- a/src/main.c
+++ b/src/main.c
@@ -115,6 +115,14 @@ int main()
i = 0;
}
+ // remove till end if you dont care about sending a clear to chat box when stopping the program.
+
+ usleep(900000); // if 2 messages are sent to quickly. this one doesnt send. so this seems like a good delay on my machine. comment out if you dont care
+ int len = 0;
+ len = tosc_writeMessage(wbuffer, sizeof(wbuffer), "/chatbox/input", "sTF", "");
+ sendto(socketfd, wbuffer, len, MSG_CONFIRM, (const struct sockaddr*)&servaddr, sizeof(servaddr));
+ // end
+
free(comb_string);
free(dist);
free(song_title);