From a1ddcb74d521bfb67518bc2c9bd5dc7b8b07a2ec Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Thu, 19 Sep 2024 11:47:43 -0600 Subject: [PATCH] Fix variable not in scope --- src/sockets/client.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sockets/client.jl b/src/sockets/client.jl index 84908c0..85cd601 100644 --- a/src/sockets/client.jl +++ b/src/sockets/client.jl @@ -224,8 +224,8 @@ function schedule_channel_task(channel, task_fn, arg, type_tag) end function c_scheduled_write(channel_task, arg, status) + socket = arg.socket if status == Int(AWS_TASK_STATUS_RUN_READY) - socket = arg.socket n = arg.n socket.debug && @info "c_scheduled_write: writing $n bytes" buf = aws_byte_buf(0, pointer(socket.writebuf.data), n, C_NULL)