Fixed thread handling.
authorArmin Novak <anovak@thinstuff.com>
Thu, 5 Sep 2013 11:38:35 +0000 (13:38 +0200)
committerArmin Novak <anovak@thinstuff.com>
Thu, 5 Sep 2013 11:38:35 +0000 (13:38 +0200)
channels/audin/server/audin.c

index 564630d..b597150 100644 (file)
@@ -419,7 +419,9 @@ static BOOL audin_server_close(audin_server_context* context)
                SetEvent(audin->stopEvent);
                WaitForSingleObject(audin->thread, INFINITE);
                CloseHandle(audin->thread);
+               CloseHandle(audin->stopEvent);
                audin->thread = NULL;
+               audin->stopEvent = NULL;
        }
 
        if (audin->audin_channel)