Skip to content

Commit 7895600

Browse files
committed
fix: remove obsoleted skipFlag
1 parent 56e9f05 commit 7895600

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/core/processrunner_unix.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ ProcessRunnerResult UnixProcessRunner::run() {
3131
res.result = CorrectAnswer;
3232
int extraTime = qCeil(qMax(2000, config.timeLimit * 2) * config.extraTimeRatio);
3333

34-
if (skipFlag) {
35-
res.result = TimeLimitExceeded;
36-
res.score = 0;
37-
return res;
38-
}
39-
4034
#ifdef Q_OS_LINUX
4135
// TODO: rewrite with cgroup
4236
QFile watcher(config.workingDirectory + QUuid::createUuid().toString(QUuid::Id128));
@@ -199,17 +193,11 @@ ProcessRunnerResult UnixProcessRunner::run() {
199193

200194
QCoreApplication::processEvents();
201195

202-
if (stopFlag || skipFlag) {
196+
if (stopFlag) {
203197
runner->terminate();
204198
runner->waitForFinished(-1);
205199
delete runner;
206200

207-
if (skipFlag) {
208-
res.score = 0;
209-
res.result = TimeLimitExceeded;
210-
res.timeUsed = res.memoryUsed = -1;
211-
}
212-
213201
return res;
214202
}
215203

0 commit comments

Comments
 (0)