<div dir="ltr">Ok, looks like the update() method of the notification is called several times, and each time it does:<div><br></div><div>The icon file exists?</div><div>Nope -> Then create a download job for it</div><div><br></div><div>The downloadjob will create the file, but it is async. Hence, the second time update is called, the icon still doesn't exist and a new downloadjob is created.</div><div><br></div><div>We need to make sure that the second time update is called, we don't try to download again something that is already in the process of being download.</div><div><br></div><div>Not sure how to do it, though :D</div><div><br></div><div>Also, would be nice if update doesn't get called several times in a row.</div><div><br></div><div>Albert</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 12, 2018 at 10:21 PM, Albert Vaca <span dir="ltr"><<a href="mailto:albertvaka@gmail.com" target="_blank">albertvaka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It seems that the download is triggered several times.</div><div><br></div><div>The first one succeeds, the second one fails, the third one fails and crashes KDE Connect.</div><div><br></div><div>Any idea why this happens?</div><span style="background-color:rgb(255,255,255)"><div style="color:rgb(0,0,0);font-family:monospace"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><font face="monospace, monospace" color="#000000">kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_<wbr>vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84") size: 22175
</font></span><font face="monospace, monospace" color="#000000"><br>kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_<wbr>vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84") size: 22175
<br>kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_<wbr>vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84") size: 22175
<br>kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_<wbr>vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84") size: 22175
<br>kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect_<wbr>vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84")
<br>kdeconnect.core: Couldn't transfer the file successfully QNetworkReply::NetworkError(<wbr>UnknownNetworkError) "/tmp/kdeconnect_vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84"
<br>kdeconnect.plugin.<wbr>notification: Error in FileTransferJob:  "Received incomplete file: /tmp/kdeconnect_vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84"
<br>kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect_<wbr>vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84")
<br>kdeconnect.plugin.<wbr>notification: Error in FileTransferJob:  "Received incomplete file: /tmp/kdeconnect_vaka/<wbr>d991fcc0a831069ef692586af8efbd<wbr>84"<br>
<span style="background-color:rgb(255,255,255)">Segmentation fault (core dumped)</span></font><span class="HOEnZb"><font color="#888888"><br>
<br><br>Albert</font></span></div>
</blockquote></div><br></div>