Fix double-lock deadlock in UdpServer on send failure

This commit is contained in:
Ivan Skytte Jørgensen
2016-09-02 16:50:38 +02:00
parent e027c12de9
commit 155bffd78a

@ -558,6 +558,7 @@ void UdpServer::sendReply(char *msg, int32_t msgSize, char *alloc, int32_t alloc
// . TODO: we may have to destroy this slot ourselves now...
log(LOG_WARN, "udp: Got error sending dgrams.");
// destroy it i guess
sl.unlock();
destroySlot ( slot );
}
// status is 0 if this blocked