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 367c6bc
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, userdata.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,
userdata.conn,
aws_mqtt_connect_return_code(return_code),
session_present != 0,
),
Expand Down

0 comments on commit 367c6bc

Please sign in to comment.