On Feb 5, 2014, at 16:27, John <j...@tonebridge.com> wrote: > I added some print statements in POE's Aliases.pm in the sub > _data_alias_resolve to see what aliases POE thought existed at any point > in time. It turns out that at the time _start is executed the mpd alias > was not registered yet! I figure it is timing and not location. > > Anyway, for debugging purposes I added a delayed event and that worked! > > I will work with it to get a better understanding if it is timing or > just having it in _start but it seems I should be good not rushing things.
I didn't notice this problem because I expected POE::Component::MPD to set its own alias in its own _start routine. _start is called before POE::Session->create() returns. The predictable timing can be used to avoid problems like this. -- Rocco Caputo <rcap...@pobox.com>