From 7110baa5d9bceb029bb73d435bfdbcc6836da21c Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 20 Jan 2006 00:30:10 +0000 Subject: [PATCH 1/1] don't kill if thread isn't alive --- lib/base/filepush.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.30.2