From 908bd84c5e75f2cfbf81b85e61ad15ba5a668579 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 7 Nov 2024 15:36:32 -0800
Subject: [PATCH] Fixed reopening a controller on Android
---
src/hidapi/android/hid.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hidapi/android/hid.cpp b/src/hidapi/android/hid.cpp
index 13f312921ab96..da6a78c67a26d 100644
--- a/src/hidapi/android/hid.cpp
+++ b/src/hidapi/android/hid.cpp
@@ -748,6 +748,8 @@ class CHIDDevice
m_nReportResponseError = -ECONNRESET;
pthread_cond_broadcast( &m_cv );
+ m_bOpenResult = false;
+
if ( bDeleteDevice )
{
delete m_pDevice;