<div dir="auto"><div>Hi Albert,<div dir="auto"><br></div><div dir="auto">I observed this as well and came to a similar analysis, but i don't know how to fix that either. In fact, <a href="https://phabricator.kde.org/D10089">https://phabricator.kde.org/D10089</a> tried to fix it. I tried to implement a List of ongoing file transfers and check if a file is being transferred, but I couldn't make it work.</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mar 12, 2018 22:38, "Albert Vaca" <<a href="mailto:albertvaka@gmail.com">albertvaka@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><font color="#888888"><div><br></div><div>Albert</div><div><br></div></font></div><div class="elided-text"><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_v<wbr>aka/d991fcc0a831069ef692586af8<wbr>efbd84") size: 22175
</font></span><font face="monospace, monospace" color="#000000"><br>kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_v<wbr>aka/d991fcc0a831069ef692586af8<wbr>efbd84") size: 22175
<br>kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_v<wbr>aka/d991fcc0a831069ef692586af8<wbr>efbd84") size: 22175
<br>kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///tmp/kdeconnect_v<wbr>aka/d991fcc0a831069ef692586af8<wbr>efbd84") size: 22175
<br>kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect_v<wbr>aka/d991fcc0a831069ef692586af8<wbr>efbd84")
<br>kdeconnect.core: Couldn't transfer the file successfully QNetworkReply::NetworkError(Un<wbr>knownNetworkError) "/tmp/kdeconnect_vaka/d991fcc0<wbr>a831069ef692586af8efbd84"
<br>kdeconnect.plugin.notification<wbr>: Error in FileTransferJob: "Received incomplete file: /tmp/kdeconnect_vaka/d991fcc0a<wbr>831069ef692586af8efbd84"
<br>kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect_v<wbr>aka/d991fcc0a831069ef692586af8<wbr>efbd84")
<br>kdeconnect.plugin.notification<wbr>: Error in FileTransferJob: "Received incomplete file: /tmp/kdeconnect_vaka/d991fcc0a<wbr>831069ef692586af8efbd84"<br>
<span style="background-color:rgb(255,255,255)">Segmentation fault (core dumped)</span></font><span class="m_-2976346086122097476HOEnZb"><font color="#888888"><br>
<br><br>Albert</font></span></div>
</blockquote></div><br></div>
</div></blockquote></div><br></div></div></div>