Attempt to isolate source of unresponsiveness

This commit is contained in:
HighImKevin committed 2026-10-16 06:39:53 -04:00
1 parent 4fe99d368f
commit 50794d7b1c
1 file changed
+2
+2
View File
@@ -197,6 +197,7 @@
* @param {Function} callback - Receives the parsed message object
*/
function listen(messageType, callback) {
return;
if (typeof messageType !== 'string' || !messageType) {
ERR('listen() requires a non-empty string messageType');
return;
@@ -236,6 +237,7 @@
* @param {Function} callback
*/
function unlisten(messageType, callback) {
return;
if (!listeners[messageType]) return;
listeners[messageType] = listeners[messageType].filter((cb) => cb !== callback);
LOG(`Unregistered listener for message type: ${messageType} (${listeners[messageType].length} remaining)`);