Skip to content

Commit 0369441

Browse files
committed
WRemoteTimeout: Fix the 'timeout' function
1 parent 40d7f15 commit 0369441

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

dist/changes/1.4.1.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# [Sky kit](http://omega.gg/Sky)
66
---
77

8+
## SkCore
9+
10+
- WRemoteTimeout: Fix the 'timeout' function.
11+
12+
813
## SkGui
914

1015
- WControllerPlaylist: Update the 'query' implementation.

src/SkCore/src/controllers/WControllerDownload.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ void WRemoteTimeout::onTimeout()
218218
{
219219
QNetworkReply * reply = qobject_cast<QNetworkReply *> (_data->_reply);
220220

221-
reply->abort();
221+
if (reply)
222+
{
223+
reply->abort();
224+
}
225+
else qWarning("WRemoteTimeout::onTimeout: Reply does not exist.");
222226
}
223227

224228
void WRemoteTimeout::onLoaded()

0 commit comments

Comments
 (0)