From 0ed802601812acd6ad764e6ffd5aacfd7e674553 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 12 Oct 2018 22:39:38 +0200 Subject: Connection management improvement, stuff --- shard/lib/cli/cli.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shard/lib/cli') diff --git a/shard/lib/cli/cli.ex b/shard/lib/cli/cli.ex index 45eeece..4f17aeb 100644 --- a/shard/lib/cli/cli.ex +++ b/shard/lib/cli/cli.ex @@ -13,7 +13,8 @@ defmodule SCLI do end pk = Shard.Keys.get_any_identity - run(%State{room_pid: nil, id_pid: nil, pk: pk}) + room_pid = Shard.Manager.find_or_start %SApp.Chat.Manifest{channel: "lobby"} + run(%State{room_pid: room_pid, id_pid: nil, pk: pk}) end defp run(state) do -- cgit v1.2.3