Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Jun 23, 2024
1 parent 4021475 commit 5be8c04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/db_connection/notify_listeners.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ defmodule DBConnection.NotifyListeners do
end

defp do_notify_listeners(action, conn_pid) do
[{_, connection_listeners}] = :ets.lookup(ets_name(), conn_pid)
connection_listeners =
case :ets.lookup(ets_name(), conn_pid) do
[{_, listeners}] -> listeners
[] -> []
end

{listeners, message} =
case connection_listeners do
Expand Down

0 comments on commit 5be8c04

Please sign in to comment.