bitbake: uievent: retry on handler registration failure
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 3 Jun 2014 15:26:12 +0000 (16:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Jun 2014 09:32:54 +0000 (10:32 +0100)
commit68a86e33f2ea49ab012749c742360ec1ecd5f16d
treeb42b13db9894c8b19e8a3bc8e4d4a5dc9268373a
parentf98a855e4bfcb3503ba44f8ea59b39b2810b5478
bitbake: uievent: retry on handler registration failure

The registration of a remote UI event handler may fail
if the server cooker is currently in some certain states.
This may happen, for example, when a remote UI is started
very fast after the bitbake server is started, and the
server hadn't time to finish initial configuration parsing.

Rather than fail outright, we have the remote UI event retry
registration for five time at one-second intervals,
in the hope it will succeed.

(Bitbake rev: c3d520c92ae4ae80d31926a416456df510654b6a)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/uievent.py