public function doStop($threadInfo) { // this should be "->shutdown()" X_RtmpDumpWeebTv::getInstance()->forceKill(); // wait few seconds sleep(2); //TODO tweak value better }