Skip to content

Commit

Permalink
Merge pull request #939 from SmartThingsCommunity/fix/nil-crash-in-cl…
Browse files Browse the repository at this point in the history
…eanup-routine
  • Loading branch information
dljsjr authored Sep 5, 2023
2 parents e4ccb32 + 7859188 commit fdb243a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function SonosWebSocketRouter.close_socket_for_player(target)
if ws ~= nil then
local ws_id = ws.id
table.insert(pending_close, target)
for _, uuid in ipairs(listener_ids_for_socket[ws_id]) do
for _, uuid in ipairs((listener_ids_for_socket[ws_id] or {})) do
local listener = listeners[uuid]

if listener ~= nil then
Expand Down

0 comments on commit fdb243a

Please sign in to comment.