Skip to content

Commit

Permalink
Fixed reopening a controller on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 7, 2024
1 parent 1ea4edd commit 908bd84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hidapi/android/hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,8 @@ class CHIDDevice
m_nReportResponseError = -ECONNRESET;
pthread_cond_broadcast( &m_cv );

m_bOpenResult = false;

if ( bDeleteDevice )
{
delete m_pDevice;
Expand Down

0 comments on commit 908bd84

Please sign in to comment.