changeset 264:20becf7df38a

Prevent duplicate thread IDs from getting added to the thread list.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 25 Feb 2003 20:38:12 +0000
parents 10a34404c825
children 84471d53ab58
files gtk/dw.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Sun Feb 23 08:38:26 2003 +0000
+++ b/gtk/dw.c	Tue Feb 25 20:38:12 2003 +0000
@@ -758,6 +758,9 @@
 
 	for(z=0;z<DW_THREAD_LIMIT;z++)
 	{
+		if(_dw_thread_list[z] == tid)
+			return;
+
 		if(_dw_thread_list[z] == (DWTID)-1)
 		{
 			_dw_thread_list[z] = tid;