urbanairship-core/src/main/java/com/urbanairship/job/AirshipService.java
@WorkerThread
    private void onJobFinished(Intent intent, int startId) {
        Logger.verbose("AirshipService - Component finished job with startId: " + startId);

        runningJobs--;

        if (intent != null) {
            WakefulBroadcastReceiver.completeWakefulIntent(intent);
        }

        if (runningJobs <= 0) {
            runningJobs = 0;
            Logger.verbose("AirshipService - All jobs finished, stopping with last startId: " + lastStartId);
            stopSelf(lastStartId);
        }
    }
/**
     * Called when a job is finished.
     *
     * @param intent The original intent.
     * @param startId The intent's startId.
     */
Called when a job is finished.
@param intent The original intent.
@param startId The intent's startId.
Called when a job is finished . @param intent The original intent . @param startId The intent ' s startId .
@WorkerThread
    private void onJobFinished(Intent intent, int startId) {
        Logger.verbose("AirshipService - Component finished job with startId: " + startId);
        runningJobs--;
        if (intent != null) {
            WakefulBroadcastReceiver.completeWakefulIntent(intent);
        }
        if (runningJobs <= 0) {
            runningJobs = 0;
            Logger.verbose("AirshipService - All jobs finished, stopping with last startId: " + lastStartId);
            stopSelf(lastStartId);
        }
    }
@ WorkerThread private void onJobFinished ( Intent intent , int startId ) { Logger . verbose ( "AirshipService - Component finished job with startId: " + startId ) ; runningJobs -- ; if ( intent != null ) { WakefulBroadcastReceiver . completeWakefulIntent ( intent ) ; } if ( runningJobs <= 0 ) { runningJobs = 0 ; Logger . verbose ( "AirshipService - All jobs finished, stopping with last startId: " + lastStartId ) ; stopSelf ( lastStartId ) ; } }
Called when a job is finished.
Called when a job is finished .