Commit 13a938a8 authored by Andreas Schmidt's avatar Andreas Schmidt

Cancel sending thread.

parent 91fb0b86
Pipeline #2620 failed with stages
in 1 minute and 11 seconds
......@@ -389,6 +389,7 @@ int PrrtSocket_interrupt(PrrtSocket *s) {
void **res = NULL;
if (s->sendDataThread != 0) {
pthread_cancel(s->sendDataThread);
check(pthread_join(s->sendDataThread, res) == 0, "Join failed.");
pthread_attr_destroy(s->sendDataThreadAttr);
s->sendDataThread = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment