                         
                         // create new thread for new connection
                         
-                        let _ = Thread(block: {
+                        let newConnectionThread = Thread(block: {
                             
                             while peripheral.isServerRunning {
                                 

                                }
                            }
                        })
                    }
                        
                    catch { peripheral.log?("Error waiting for new connection: \(error)") }

            
            self.serverSocket = serverSocket
            self.serverThread = serverThread
            self.serverThread.start()
        }
        
        public func stop() {
