removed double negative logic when connected socket