does seem to work better when latency is high
This commit is contained in:
botanic 2014-01-26 03:20:00 -08:00
parent fad0671af1
commit 8c4a6fc2da

View file

@ -3857,6 +3857,7 @@ namespace NLGUI
else else
{ {
/* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */ /* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */
/* FIX ME - every connection is appending a new callback to the list, and its never removed (Vinicius Arroyo)*/
HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST); HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST);
/* Set the timeout for long we are going to wait for a response */ /* Set the timeout for long we are going to wait for a response */
@ -4003,6 +4004,7 @@ namespace NLGUI
else else
{ {
/* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */ /* Add our own request terminate handler. Nb: pass as param a UID, not the ptr */
/* FIX ME - every connection is appending a new callback to the list, and its never removed (Vinicius Arroyo)*/
HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST); HTNet_addAfter(requestTerminater, NULL, (void*)(size_t)_GroupHtmlUID, HT_ALL, HT_FILTER_LAST);
/* Start the first request */ /* Start the first request */
@ -4089,8 +4091,10 @@ namespace NLGUI
// *************************************************************************** // ***************************************************************************
void CGroupHTML::requestTerminated(HTRequest * /* request */) void CGroupHTML::requestTerminated(HTRequest * request )
{ {
// this callback is being called for every request terminated
if( request == _LibWWW->Request ){
// set the browser as complete // set the browser as complete
_Browsing = false; _Browsing = false;
updateRefreshButton(); updateRefreshButton();