SDL: Removed problematic call to ISensor_SetEventSink()

From e8c3ff56e05f83dcdb891c11d77ac5a9520cf718 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 17 Mar 2022 10:01:13 -0700
Subject: [PATCH] Removed problematic call to ISensor_SetEventSink()

Fixes https://github.com/libsdl-org/SDL/issues/5288
---
 src/sensor/windows/SDL_windowssensor.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/sensor/windows/SDL_windowssensor.c b/src/sensor/windows/SDL_windowssensor.c
index bb8d39ed267..21b119d22e0 100644
--- a/src/sensor/windows/SDL_windowssensor.c
+++ b/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;