Changeset 278

Show
Ignore:
Timestamp:
04/09/03 09:45:10 (6 years ago)
Author:
jajcus
Message:

- request hash must be unique so counter is used instead of time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/JGGTRANS_B_1_4/src/requests.c

    r276 r278  
    1 /* $Id: requests.c,v 1.19.2.2 2003/04/09 07:39:44 jajcus Exp $ */ 
     1/* $Id: requests.c,v 1.19.2.3 2003/04/09 07:45:10 jajcus Exp $ */ 
    22 
    33/* 
     
    3030 
    3131static GList *requests=NULL; 
    32 GHashTable *lookups=NULL; 
     32static GHashTable *lookups=NULL; 
     33static int id_counter=0; 
    3334 
    3435int requests_init(){ 
     36 
     37        id_counter=time(NULL); 
    3538        lookups=g_hash_table_new(g_int_hash, g_int_equal); 
    3639        if(!lookups) 
     
    133136                s=session_get_by_jid(from, stream); 
    134137                if (s==NULL) return NULL; 
    135                  
    136                 r->hash=time(NULL); 
     138                r->hash=id_counter++; 
    137139                gg_pubdir50_seq_set((gg_pubdir50_t)data, r->hash); 
    138140                gg_pubdir50(s->ggs, (gg_pubdir50_t)data);