packages/net/rtorrent/patches/111-fix_crash_thread.patch
jow f39b4c249f [packages] rtorrent: update to r1123 (#6624)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19499 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-02 15:52:58 +00:00

10 lines
334 B
Diff

--- a/src/thread_base.cc 2010-01-26 09:40:34.000000000 +0300
+++ b/src/thread_base.cc 2010-01-31 18:38:25.000000000 +0300
@@ -191,5 +191,5 @@
void
ThreadBase::queue_item(thread_base_func newFunc) {
m_threadQueue->push_back(newFunc);
- pthread_kill(m_thread, SIGUSR1);
+ if(m_thread != NULL) pthread_kill(m_thread, SIGUSR1);
}