Godot-Websocket icon indicating copy to clipboard operation
Godot-Websocket copied to clipboard

Editor Crashes After Close

Open ghost opened this issue 8 years ago • 2 comments

Hey! Thanks for this project first of all, it's a life savior!

When you preview your project and successfully connect to your websocket server, then close your app, this message pops up:

https://i.gyazo.com/2768e8034e23b31baac72ffb187aab2c.gif

But, when you remove the thread.start(self,'_run', self) line, this error goes away (but you are not connected :P) Any idea why that is? Just curious, thanks!

ghost avatar May 23 '16 15:05 ghost

This line make socket to works. This error from windows is a generic message. Not show nothing. This is probably is a platform specific error, because thread not stop on window close, and reference that not destroyed by Godot core. The soluction is possible to try handle the onclose, event... maybe. I intend to work more on it at weekend. Includint to suport messages biggest to 126 characteres. For now, it it not cause connections issues, can be waiting for more polish work.

marcosbitetti avatar May 24 '16 14:05 marcosbitetti

@marcosbitetti Thanks for the response. I'm new to gdscript, so learning a lot as I go, thank you for keeping it updated

ghost avatar May 24 '16 14:05 ghost