Fixed thread hanling.
authorArmin Novak <anovak@thinstuff.com>
Thu, 5 Sep 2013 11:39:32 +0000 (13:39 +0200)
committerArmin Novak <anovak@thinstuff.com>
Thu, 5 Sep 2013 11:39:32 +0000 (13:39 +0200)
libfreerdp/utils/svc_plugin.c

index f0869a6..e07e8b3 100644 (file)
@@ -185,6 +185,8 @@ static void* svc_plugin_thread_func(void* arg)
 
        DEBUG_SVC("in");
 
+       assert(NULL != plugin);
+
        IFCALL(plugin->connect_callback, plugin);
 
        while (1)
@@ -212,6 +214,8 @@ static void* svc_plugin_thread_func(void* arg)
 
        DEBUG_SVC("out");
 
+       ExitThread(0);
+
        return 0;
 }