FRunnable thread freezes editor.
I'm creating a FRunnable on UGameInstance.Init() with FRunnableThread::Create
In Run() function I'm reading from a socket with recv and the thread gets locked waiting for data. If I stop the editor it freezes waiting for thread to finalize. I override Shutdown() and BeginDestroy() in UGameInstance closing the socket with closesocket but this functions are never called.
Anybody knows why this functions are never called and how can I solve it? Thank you in advance.
asked Jul 26 '16 at 10:27 AM in C++ Programming
answered Jul 27 '16 at 08:54 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here