mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 16:28:14 +00:00
Corrected issue with input threads (RPI)
This commit is contained in:
@@ -765,12 +765,13 @@ void CloseWindow(void)
|
||||
|
||||
for (int i = 0; i < sizeof(eventWorkers)/sizeof(InputEventWorker); ++i)
|
||||
{
|
||||
if (eventWorkers[i].threadId == 0)
|
||||
if (eventWorkers[i].threadId)
|
||||
{
|
||||
pthread_join(eventWorkers[i].threadId, NULL);
|
||||
}
|
||||
}
|
||||
pthread_join(gamepadThreadId, NULL);
|
||||
|
||||
if (gamepadThreadId) pthread_join(gamepadThreadId, NULL);
|
||||
#endif
|
||||
|
||||
TraceLog(LOG_INFO, "Window closed successfully");
|
||||
|
Reference in New Issue
Block a user