Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
add connection drop/retry functionality to ifm
Browse files Browse the repository at this point in the history
Former-commit-id: 119cc57
  • Loading branch information
you-win committed Sep 1, 2022
1 parent 9ddaae5 commit 6f58497
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/extensions/i_facial_mocap/ifm.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6f58497

Please sign in to comment.