diff --git a/resources/extensions/i_facial_mocap/ifm.gd b/resources/extensions/i_facial_mocap/ifm.gd index 77559f53..e9558ac7 100644 --- a/resources/extensions/i_facial_mocap/ifm.gd +++ b/resources/extensions/i_facial_mocap/ifm.gd @@ -107,6 +107,11 @@ func _receive() -> void: server.poll() if connection != null: var packet := connection.get_packet() + if connection.get_packet_error() != OK: + logger.error("Last packet had an error: %d" % connection.get_packet_error()) + connection.close() + connection = null + return if packet.size() < 1: return