mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Remove weak keywords as we nil out the pipeline reference when remove the context from the pipeline
This commit is contained in:
1 parent
a28b1eb8d2
commit
91b652fe8b
1 file changed
+2
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user