Small performance optmization

There is no need to spawn a thread if there is only one media host.