Call the onconnect handler when we poll