]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: main: kill server without queue setup
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 5 Jan 2016 13:45:38 +0000 (15:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Jan 2016 15:27:35 +0000 (15:27 +0000)
commita178c5a16371d92b56da3968c2e4830188341fcf
treeb55a5f8f299dfa6cd5f8f17e0ed07dc0e3417409
parent773700dbc354425d599b223d72a0ccd2d034ce4a
bitbake: main: kill server without queue setup

Setup of event queue includes registering of UI handler.
This operation can fail when cooker is busy. However, there is
no need in registering UI handler for terminating the server.

Moved the call of connection.terminateServer before setting up
of the event queue. This should make terminating server to work
more reliably as it doesn't depend on setting up the event queue
and registering UI handler anymore.

This should also help Toaster backend to restart bitbake server
and observer without getting "Could not register UI event handler"
errors.

[YOCTO #8776]

(Bitbake rev: 0c5a9349f797d05c282c2ada1893e187e05f0576)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/main.py