Skip to content

Commit

Permalink
Merge branch 'release/2.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Nov 4, 2024
2 parents 2f06b7f + 002fc5c commit 448c113
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/lexdee/observer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ defmodule Lexdee.Observer do
:last_pinged_at
]

def connect(pid) do
GenServer.call(pid, :connect)
end

def start_link(options) do
name = Keyword.get(options, :name)

with {:ok, pid} <- GenServer.start_link(__MODULE__, options, name: name),
{:ok, :connected} <- GenServer.call(pid, :connect) do
{:ok, :connected} <- connect(pid) do
{:ok, pid}
end
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Lexdee.MixProject do
def project do
[
app: :lexdee,
version: "2.4.4",
version: "2.4.5",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 448c113

Please sign in to comment.