git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't kill if thread isn't alive
[enigma2.git]
/
lib
/
base
/
filepush.cpp
diff --git
a/lib/base/filepush.cpp
b/lib/base/filepush.cpp
index 39319a2477b056003b2729155890d40519ac44e2..60dc78ee2995829c3de7f9ccd6156d7a567fc3c2 100644
(file)
--- a/
lib/base/filepush.cpp
+++ b/
lib/base/filepush.cpp
@@
-111,6
+111,8
@@
void eFilePushThread::start(int fd_source, int fd_dest)
void eFilePushThread::stop()
{
+ if (!thread_running()) /* FIXME: races */
+ return;
m_stop = 1;
sendSignal(SIGUSR1);
kill();