Skip to content

Commit

Permalink
fix a crash when job logs too much (e.g. vid.stab)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jun 20, 2021
1 parent 16d5938 commit 2b5f4ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jobs/abstractjob.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2019 Meltytech, LLC
* Copyright (c) 2012-2021 Meltytech, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -70,7 +70,9 @@ bool AbstractJob::stopped() const

void AbstractJob::appendToLog(const QString& s)
{
m_log.append(s);
if (m_log.size() < 100*1024*1024 /* MiB */) {
m_log.append(s);
}
}

QString AbstractJob::log() const
Expand Down

0 comments on commit 2b5f4ac

Please sign in to comment.