Issue #8660 by cableman: Fixed wrong function call in socket plugin