Browse Source

Removed problematic call to ISensor_SetEventSink()

Fixes https://github.com/libsdl-org/SDL/issues/5288
Sam Lantinga 3 years ago
parent
commit
e8c3ff56e0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/sensor/windows/SDL_windowssensor.c

+ 4 - 1
src/sensor/windows/SDL_windowssensor.c

@@ -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;