Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Octogonapus committed Aug 9, 2024
1 parent e0d6f60 commit d80c2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AWSMQTT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function _c_on_connection_interrupted(

data = Base.unsafe_pointer_to_objref(userdata)::_OnConnectionInterruptedUserData
try
put!(data.ch, _OnConnectionInterruptedEvent(data.callback, connection, error_code))
put!(data.ch, _OnConnectionInterruptedEvent(data.callback, data.conn, error_code))
catch ex
if ex isa InvalidStateException && ex.state == :closed
else
Expand Down Expand Up @@ -267,7 +267,7 @@ function _c_on_connection_resumed(
data.ch,
_OnConnectionResumedEvent(
data.callback,
connection,
data.conn,
aws_mqtt_connect_return_code(return_code),
session_present != 0,
),
Expand Down

0 comments on commit d80c2e8

Please sign in to comment.