fun stop() { val methodName = "stop" synchronized(lifecycle) { log.fine(CLASS_NAME, methodName, "850") if (running) { running = false receiving = false if (Thread.currentThread() != recThread) { try { recThread.join() } catch (ex: InterruptedException) { } } } } recThread = null log.fine(CLASS_NAME, methodName, "851") }
Stops the Receiver 's thread . This call will block .