UDP transport shutdown fixed

This commit is contained in:
Matej Sekoranja
2016-02-25 10:37:01 +01:00
parent f0ca714214
commit 7bfe58f1e2
3 changed files with 5 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ inline int sendto(int s, const char *buf, size_t len, int flags, const struct so
// wait for send thread to exit cleanly
if (waitForThreadToComplete)
if (_thread.get() && waitForThreadToComplete)
{
if (!_shutdownEvent.wait(5.0))
{