Removed redundant socket call