Remove weak keywords as we nil out the pipeline reference when remove the context from the pipeline

This commit is contained in:
Norman Maurer committed 2017-07-07 17:21:37 +01:00
1 parent a28b1eb8d2
commit 91b652fe8b
1 file changed
+2 -4
+2 -4
View File
@@ -631,14 +631,12 @@ public enum ChannelPipelineError : Error {
public final class ChannelHandlerContext : ChannelInvoker {
// visible for ChannelPipeline to modify and also marked as weak to ensure we not create a
// reference-cycle for the doubly-linked-list
// visible for ChannelPipeline to modify
fileprivate var outboundNext: ChannelHandlerContext?
fileprivate var inboundNext: ChannelHandlerContext?
// marked as weak to not create a reference cycle between this instance and the pipeline
public fileprivate(set) weak var pipeline: ChannelPipeline?
public fileprivate(set) var pipeline: ChannelPipeline?
public var channel: Channel? {
return pipeline?.channel