 
     let service: NetService
 
+    let group: EventLoopGroup
+    let bootstrap: ServerBootstrap
+
     let channel: Channel
     let channel6: Channel
 

        updateDiscoveryRecord()

        service.publish(options: NetService.Options(rawValue: 0))
        try! channel.closeFuture.wait()
        try! channel6.closeFuture.wait()
    }

    public func wait() {
    }

    /// Publish the Accessory configuration on the Bonjour service

                channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).then {
                    // It's important we use the same handler for all accepted channels. The ControllerHandler is thread-safe!
                    channel.pipeline.add(handler: device.controllerHandler!).then {
                        channel.pipeline.add(handler: CryptographerHandler()).then {
                            channel.pipeline.add(handler: RequestHandler()).then {
                                channel.pipeline.add(handler: UpgradeEventHandler()).then {
                                    channel.pipeline.add(handler: applicationHandler)
                                }
                            }
                        }
                    }
                }
