mirror of https://github.com/encounter/SDL.git
Removed problematic call to ISensor_SetEventSink()
Fixes https://github.com/libsdl-org/SDL/issues/5288
This commit is contained in:
parent
bcb0f1de23
commit
e8c3ff56e0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue