Skip to content

Commit

Permalink
Job Sheduler: Return getAllPendingJobs return ParceledListSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
imsourcandy committed Apr 14, 2022
1 parent 162208c commit 51296b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.client.env.VirtualRuntime;
import com.lody.virtual.remote.VParceledListSlice;
import com.lody.virtual.helper.compat.ParceledListSliceCompat;
import com.lody.virtual.server.IJobScheduler;

/**
Expand Down Expand Up @@ -50,9 +50,9 @@ public int schedule(JobInfo job) {
}
}

public VParceledListSlice<JobInfo> getAllPendingJobs() {
public Object getAllPendingJobs() {
try {
return new VParceledListSlice<JobInfo>(getRemote().getAllPendingJobs());
return ParceledListSliceCompat.create(getRemote().getAllPendingJobs());
} catch (RemoteException e) {
return VirtualRuntime.crash(e);
}
Expand Down

0 comments on commit 51296b6

Please sign in to comment.