projects
/
qtrapids
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
alerting race condition fix
[qtrapids]
/
src
/
server
/
TorrentSession.cpp
diff --git
a/src/server/TorrentSession.cpp
b/src/server/TorrentSession.cpp
index
486848d
..
aa1f105
100644
(file)
--- a/
src/server/TorrentSession.cpp
+++ b/
src/server/TorrentSession.cpp
@@
-48,6
+48,12
@@
namespace qtrapids
if (ta) {
+
+ if (!ta->handle.is_valid()) {
+ qDebug() << "handle is invalid";
+ return;
+ }
+
TorrentHandle handle(ta->handle);
TorrentState state;