Fixes phonegap/ios-deploy#80 --detect not showing non-zero exit code when no devices are detected.

This commit is contained in:
Shazron Abdullah 2014-11-14 13:07:19 -08:00
parent 7a447b480f
commit 767c386ba9

View File

@ -1607,8 +1607,10 @@ void timeout_callback(CFRunLoopTimerRef timer, void *info) {
}
else
{
if (!debug)
if (!debug) {
printf("[....] No more devices found.\n");
exit(exitcode_error);
}
else
{
int mypid = getpid();