connection: fix crash on ping frame

fix #112
1.12.2