File 0027-turtle_subscriber-add-missed-clause-to-handle_comman.patch of Package turtle
From 37175283e9915e25668efaee3edf823ad8f87750 Mon Sep 17 00:00:00 2001
From: Led <ledest@gmail.com>
Date: Fri, 25 Jan 2019 16:58:56 +0200
Subject: [PATCH] turtle_subscriber: add missed clause to handle_commands/3
---
src/turtle_subscriber.erl | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/turtle_subscriber.erl b/src/turtle_subscriber.erl
index 5e12bd1..0f6a276 100644
--- a/src/turtle_subscriber.erl
+++ b/src/turtle_subscriber.erl
@@ -223,6 +223,7 @@ handle_exception(Class, Error, DTag, #state{ channel = Ch } = State) ->
amqp_channel:call(Ch, #'basic.reject' { delivery_tag = DTag, requeue = false }),
{stop, {Class, Error}, State}.
+handle_commands(_S, [], State) -> {noreply, State};
handle_commands(S, [C | Next], #state { channel = Channel, conn_name = CN, name = N } = State) ->
case C of
{ack, Tag} ->
--
2.16.4