[fixes #75252128] changed condition being used for preventing connect callback from getting invoked multiple times