Skip to content

Commit

Permalink
fix: [input] revert connection state determination
Browse files Browse the repository at this point in the history
  • Loading branch information
gallypette committed Oct 18, 2024
1 parent 215a167 commit 07ac533
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/cocktailparty/input.ex
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,9 @@ defmodule Cocktailparty.Input do

# For STOMP, we get the status from the network process
"stomp" ->
# TODO the process is not linked anymore
state =
false

# state =
# :sys.get_state(pid).network_pid
# |> :sys.get_state()
:sys.get_state(pid).network_pid
|> :sys.get_state()

case state do
%{is_connected: true} ->
Expand Down

0 comments on commit 07ac533

Please sign in to comment.