Skip to content

Commit 32c997d

Browse files
committed
Fix bug should always return state transport-in
1 parent d07dc38 commit 32c997d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/voice_fn/transport.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
(let [data (u/parse-if-json input)
117117
output (if (fn? handle-event) (handle-event data) nil)
118118
out-frames (partial merge-with into output)]
119-
(case (:event data)
119+
(condp = (:event data)
120120
"start" [state (if-let [stream-sid (:streamSid data)]
121121
(out-frames {:sys-out [(frame/system-config-change {:twilio/stream-sid stream-sid
122122
:transport/serializer (make-twilio-serializer stream-sid)})]})
@@ -127,7 +127,7 @@
127127

128128
"close"
129129
[state (out-frames {:sys-out [(frame/system-stop true)]})]
130-
nil)))
130+
[state])))
131131

132132
(def twilio-transport-in
133133
(flow/process

0 commit comments

Comments
 (0)