| 386 gboolean use_cached_result = TRUE; |
386 gboolean use_cached_result = TRUE; |
| 387 |
387 |
| 388 /** Deal with the server name having changed since we did the |
388 /** Deal with the server name having changed since we did the |
| 389 lookup */ |
389 lookup */ |
| 390 if (servername && strlen(servername) > 1 |
390 if (servername && strlen(servername) > 1 |
| 391 && ((nattype.servername |
391 && !purple_strequal(servername, nattype.servername)) { |
| 392 && strcmp(servername, nattype.servername)) |
|
| 393 || !nattype.servername)) { |
|
| 394 use_cached_result = FALSE; |
392 use_cached_result = FALSE; |
| 395 } |
393 } |
| 396 |
394 |
| 397 /* If we don't have a successful status and it has been 5 |
395 /* If we don't have a successful status and it has been 5 |
| 398 minutes since we last did a lookup, redo the lookup */ |
396 minutes since we last did a lookup, redo the lookup */ |