<table><tr><td style="">fvogt added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17233">View Revision</a></tr></table><br /><div><div><p>It might work as well to just ignore the "interrupted" <tt style="background: #ebebeb; font-size: 13px;">state</tt> completely and only react when <tt style="background: #ebebeb; font-size: 13px;">error</tt> becomes set.</p>

<p>The docs say that error is undefined if no error occured (It's actually <tt style="background: #ebebeb; font-size: 13px;">null</tt> here, so it's already a doc violation...), so if it's set that's a better trigger to terminate the KJob AFAICT.</p>

<p>The way I tested it here (a php script with a sleep inside) the download doesn't actually terminate until the sleep runs out, so I got the "unknown error" message anyway.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R856 Plasma Browser Integration</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17233">https://phabricator.kde.org/D17233</a></div></div><br /><div><strong>To: </strong>broulik, Plasma, davidedmundson, fvogt<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>