Skip to content

Commit 5f3abd5

Browse files
authored
MessageConsumer has no state field (#56)
Fixes JuliaComputing/AMQPClient#55
1 parent 865674f commit 5f3abd5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/protocol.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,8 @@ function connection_processor(c, name, fn)
354354
catch err
355355
reason = "$name task exiting."
356356
if isa(c, MessageConsumer)
357-
if !(c.state in (CONN_STATE_CLOSING, CONN_STATE_CLOSED))
358-
reason = reason * " Unhandled exception: $err"
359-
@warn(reason, exception=(err,catch_backtrace()))
360-
end
357+
reason = reason * " Unhandled exception: $err"
358+
@warn(reason, exception=(err,catch_backtrace()))
361359
close(c)
362360
else
363361
isconnclosed = !isopen(c)

0 commit comments

Comments
 (0)