Skip to content

Commit 72a8398

Browse files
committed
add a clause
1 parent da31081 commit 72a8398

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,6 @@ remote_production:
6262
fly ssh console -C "/home/elixir/app/bin/{{binname}} remote" --app {{appname}}
6363

6464
tunnel:
65-
ssh -p 443 -R0:localhost:4000 ${PINGY_TOKEN}@a.pinggy.online
65+
# cloudflared tunnel --token ${CLOUDFLARE_TOKEN} --url http://localhost:4000
66+
# Public dynamic tunnel, works for now, but would be good to setup something with the token
67+
cloudflared tunnel --url http://localhost:4000

lib/pr/music/music.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,13 @@ defmodule PR.Music do
119119
def check_current_playstate(%PlaybackState{state: state}, _mode),
120120
do: {:error, :playstate, state}
121121

122+
def check_current_playstate(%{}, _mode),
123+
do: {:error, :playstate, nil}
124+
122125
def check_unplayed() do
123126
# Check if there's something in the queue
124127
# If might still be marked as playing if its a skip
125-
# but that's probably ok as this check is only really
128+
# but that's probably ok as this check is only really
126129
# of interest for knowing what to do when skip is pressed
127130
cond do
128131
Queue.num_unplayed() == 0 ->

0 commit comments

Comments
 (0)