appium/appium — pull request #1844 by snevesbarros (2014-02-01 19:56:29+00:00)
Title: fix for #1817

Added two minor fixes:
1. Added the is not safariLauncher to the didLaunch check as the safari launcher app will crash, but that is the point.
2. Added an immediate call back for the setBootstrapConfig when using safariLauncher as it tries to put a command in the queue even though instruments has lost connection.

Tested it on simulator and real devices (iOS 7.0.4) with xcode 4.6 and xcode 5.0 and it work fine (when re-running a basic safari script multiple times).