Fix: PFR D-Bus introspect timeout error

Request bus name on connection will do a phosphor-mapper
introspect. If there is delay between io->run and request_name
causes the phosphor-mapper introspect failure. Due to this timing
issue, some times PFR version interfaces are not advertised over
D-Bus resulting in unavailability of version objects.

Moved request_name close to the io->run. Also isolated all signal
matchers from main.

Tested:
No timeout messages observed. Also Refish inventory items
populates all versions properly.

Change-Id: I18003e3ad0f6fa8821a4ec35a80cad017b3208c9
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
1 file changed