Fix incorrect conditional in `receiveUpdate()`.

Simplify ping frame handling.