Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the unstable socket connection error #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 23, 2023

  1. fix the unstable socket connection error

    If notify_one() of the condition variable has been called before the function wait(), wait()  blocks the connection until the next connection is established. 
    
    So you get an socket connect Error.  It will occur more frequently on the iOS platform.
    
    solution:
    Use FScopedEvent of UE.
    
    reference: 
    https://en.cppreference.com/w/cpp/thread/condition_variable/notify_one
    https://docs.unrealengine.com/4.26/en-US/API/Runtime/Core/Misc/FScopedEvent/
    ababycat authored Apr 23, 2023
    Configuration menu
    Copy the full SHA
    6c3cebb View commit details
    Browse the repository at this point in the history