Ignoring UDP read function if UDP isn't used