minor valgrind fixes

pull/88/head
Oliver Giles 5 years ago
parent 31c64980f7
commit 5c7421c833

@ -645,8 +645,8 @@ bool Laminar::tryStartRun(std::shared_ptr<Run> run, int queueIndex) {
});
// Actually schedules the Run steps
kj::Promise<void> exec = handleRunStep(run.get()).then([this,r=run.get()]{
runFinished(r);
kj::Promise<void> exec = handleRunStep(run.get()).then([=]{
runFinished(run.get());
});
if(run->timeout > 0) {
exec = exec.attach(srv->addTimeout(run->timeout, [r=run.get()](){

@ -83,7 +83,7 @@ public:
kj::Maybe<pid_t> current_pid;
int output_fd;
std::unordered_map<std::string, std::string> params;
int timeout;
int timeout = 0;
time_t queuedAt;
time_t startedAt;

Loading…
Cancel
Save