Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Fix a memory leak in QueueHandler #134

Merged
merged 1 commit into from
Apr 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Async/QueueHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class QueueHandler<In, Out>: ChannelInboundHandler {
private let eventLoop: EventLoop

/// A write-ready context waiting.
private var waitingCtx: ChannelHandlerContext?
private weak var waitingCtx: ChannelHandlerContext?

/// Handles errors that happen when no input promise is waiting.
private var errorHandler: (Error) -> ()
Expand Down