UDP sender socket stops working after 1 minute

Found the solution. Was a silly garbage collection mistake: I was pretty sure everything that I was using was covered with a UPROPERTY(), but the instance of the UObject that I was using for the socket wasn’t. Adding UPROPERTY() to that instance fixxed the problem.