added current_time when checking stop_publish