From: Felix Domke Date: Fri, 20 Jan 2006 00:30:10 +0000 (+0000) Subject: don't kill if thread isn't alive X-Git-Tag: 2.6.0~4350 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/7110baa5d9bceb029bb73d435bfdbcc6836da21c don't kill if thread isn't alive --- diff --git a/lib/base/filepush.cpp b/lib/base/filepush.cpp index 39319a24..60dc78ee 100644 --- 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();