 
     private let pendingWrites: PendingWrites = PendingWrites()
     private var readPending: Bool = false
+    private var neverRegistered = true
 
     public private(set) var allocator: ByteBufferAllocator = ByteBufferAllocator()
     private var recvAllocator: RecvByteBufferAllocator = FixedSizeRecvByteBufferAllocator(capacity: 8192)

        case .Write:
            safeReregister(interested: .All)
        case .None:
            safeRegister(interested: .Read)
        default:
            break
        }


    }
    
    private func safeRegister(interested: InterestedEvent) -> Bool {
        guard open else {
            interestedEvent = .None
            return false
        }
        interestedEvent = interested
        do {
            try eventLoop.register(channel: self)
            return true
        } catch let err {
            pipeline.fireErrorCaught(error: err)
            close0(error: err)
            return false
        }
    }

