fix a bug

This commit is contained in:
Vincent Wei
2023-07-27 10:58:58 +08:00
parent fcde9eb405
commit 5ad525c1d8
+1 -1
View File
@@ -836,7 +836,7 @@ static int create_async_updater(_THIS)
static void cancel_async_updater(_THIS)
{
if (this->hidden->async_update) {
if (this->hidden->async_update && this->LockHWSurface) {
pthread_cancel(this->hidden->update_thd);
pthread_join(this->hidden->update_thd, NULL);
#ifdef _DEBUG