Skip to content

Commit

Permalink
Removed problematic call to ISensor_SetEventSink()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken authored and ericlewis committed Mar 18, 2022
1 parent e70c3f0 commit 1e1f15b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sensor/windows/SDL_windowssensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ static int DisconnectSensor(ISensor *sensor)
for (i = 0; i < SDL_num_sensors; ++i) {
old_sensor = &SDL_sensors[i];
if (sensor == old_sensor->sensor) {
ISensor_SetEventSink(sensor, NULL);
/* This call hangs for some reason:
* https://github.com/libsdl-org/SDL/issues/5288
*/
/*ISensor_SetEventSink(sensor, NULL);*/
ISensor_Release(sensor);
SDL_free(old_sensor->name);
--SDL_num_sensors;
Expand Down

0 comments on commit 1e1f15b

Please sign in to comment.