Hi,
    My patch is not eliminating the problem completely. Hence discard
it.
 
Regards,
Ganapati K
 
 

________________________________

From: Kundapura Ganapati (Nokia-TP-MSW/Bangalore) 
Sent: Wednesday, August 30, 2006 4:59 PM
To: 'Loudmouth List'
Subject: Problem while connecting to gtalk server with a PROXY


Hi,
    I tried to run lm-send-sync from the m/c behind the proxy,  I was
getting 
--
(lm-send-sync:13505): GLib-CRITICAL **: g_source_destroy: assertion
`source != NULL' failed
--
 
The reason for this is 
   In connection_do_connect, value of connection->io_watch_connect ( = 2
) is modified after registering 
callback function _lm_proxy_connect_cb (in case of proxy)
 
    In _lm_proxy_connect_cb, another source is added ( callback =
proxy_read_cb ),
 but value of the connect->io_watch_connect is not modified and get
destroyed as it returns FALSE.
 
    In proxy_read_cb, _lm_connection_succeeded is called, and calls
g_source_destroy
by passing the source id of the destroyed source and hence the critical
warning.
 
    After registering the source with callback proxy_read_cb,
connection->io_watch_connect needs to be
incremented. 
 
    Patch is attached for this.
 
Regards,
Ganapati K
 

Reply via email to