uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

System.exit(0) breaks WollokGame #543

Closed javierfernandes closed 8 years ago

javierfernandes commented 8 years ago

Since it ends the whole process killing libgdx background thread.

Wollok game start() method should block the thread. And maybe continue it once libgdx notifies that the window has been closed.

Juancete commented 8 years ago

LwjglApplication start a new thread in a variable called mainLoopThread. We need just join the main thread to wait until the libgdx application ends.

javierfernandes commented 8 years ago

Yeah ! Cool! El dic 30, 2015 1:16 AM, "Juancete" notifications@github.com escribió:

LwjglApplication start a new thread in a variable called mainLoopThread. We need just join the main thread to wait until the libgdx application ends.

— Reply to this email directly or view it on GitHub https://github.com/uqbar-project/wollok/issues/543#issuecomment-167933607 .