Re: [SOLVEDish] Problem with MPD client but probably POE user error

[email protected] (Rocco Caputo) Thu, 6 Feb 2014 09:30:53 -0500
Newsgroups perl.poe
Message-ID <[email protected]>
On Feb 5, 2014, at 16:27, John <[email protected]> wrote:

> I added some print statements in POE's Aliases.pm in the sub=20
> _data_alias_resolve to see what aliases POE thought existed at any =
point=20
> in time.  It turns out that at the time _start is executed the mpd =
alias=20
> was not registered yet!  I figure it is timing and not location.
>=20
> Anyway, for debugging purposes I added a delayed event and that =
worked!
>=20
> I will work with it to get a better understanding if it is timing or=20=

> 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.

--=20
Rocco Caputo <[email protected]>=