From 91bc0e8625d8878d93648dbb452c37fcf85305f5 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Tue, 12 Jan 2010 08:15:38 +0200 Subject: client: fix unsafe access to an event member --- client/process_loop.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'client/process_loop.cpp') diff --git a/client/process_loop.cpp b/client/process_loop.cpp index 794f29d9..b7b42e20 100644 --- a/client/process_loop.cpp +++ b/client/process_loop.cpp @@ -49,7 +49,7 @@ void SyncEvent::response(AbstractProcessLoop& events_loop) void SyncEvent::wait() { #ifdef RED_DEBUG - ASSERT(!_process_loop || !_process_loop->is_same_thread(pthread_self())); + ASSERT(_process_loop && !_process_loop->is_same_thread(pthread_self())); #endif Lock lock(_mutex); while (!_ready) { @@ -123,9 +123,6 @@ void EventsQueue::process_events() lock.unlock(); event->response(_owner); -#ifdef RED_DEBUG - event->set_process_loop(NULL); -#endif event->unref(); } } -- cgit