If you call $poe_kernel->run(); without any sessions created yet, then it 
will return immediately.

Call that, then use run_one_timeslice and no warning will be produced.

David

On 9/5/05, Jay Strauss <[EMAIL PROTECTED]> wrote:
> 
> Rocco Caputo wrote:
> > On Sep 5, 2005, at 17:43, Jay Strauss wrote:
> >
> >> I'm getting "POE::Kernel's run() method was never called." error when
> >> my script that calls the code below ends.
> >>
> >> I could put a ->run and ->("shutdown") into a sub DESTROY. But is
> >> there a way I'm supposed to avoid this error.
> >
> >
> > POE::Kernel isn't designed to run without run() being called from the
> > top level. Your code avoids some initialization and cleanup that run ()
> > does.
> >
> 
> Rocco, I appreciate the code. I'm not familiar with socket programming
> enough to feel comfortable rolling my own.
> 
> Based on what you said, I don't understand then how you'd ever use the
> run_one_timeslice method then. If you need to call ->run, then your
> program is stuck running and doesn't drop down to further code, until
> "shutdown".
> 
> How would you ever get to the code to do the run_one_timeslice portion?
> 
> Thanks
> Jay
>

Reply via email to