xvfbwrapper icon indicating copy to clipboard operation
xvfbwrapper copied to clipboard

Update the start() method to do polling instead of a fixed sleep.

Open cgoldberg opened this issue 7 years ago • 0 comments

this code is from the start() method in xvfbwrapper.py:

# give Xvfb time to start
time.sleep(self.__class__.SLEEP_TIME_BEFORE_START)
ret_code = self.proc.poll()

It uses a fixed time.sleep(.1) to wait for Xvfb startup. Change this so it calls proc.poll() in a loop with a timeout.

cgoldberg avatar Nov 08 '17 02:11 cgoldberg