From: TOUPIN Y. <you...@wa...> - 2009-05-17 18:48:11
|
It seems the problem comes from the Connect function call, which uses the current lua state to register the event callback. When the callback is called, it is from that lua state, which, in my case, is the coroutine, not the main lua thread. Is there any reason for this behavior ? Wouldn't it be better to get the main lua thread (I think it can be retrieved from the coroutine) when the Connect function is called, and use it instead of the coroutine ? |