remove socket condition