mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-06 21:00:07 +02:00
gsocketclient: Clarify some internal comments
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
69c6413182
commit
240b8bbc2d
@ -1799,6 +1799,8 @@ task_completed_or_cancelled (GSocketClientAsyncConnectData *data)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Returns %TRUE if it’s popped a connection of data->successful_connections and
|
||||||
|
* successfully started the next ongoing async operation for that connection. */
|
||||||
static gboolean
|
static gboolean
|
||||||
try_next_successful_connection (GSocketClientAsyncConnectData *data)
|
try_next_successful_connection (GSocketClientAsyncConnectData *data)
|
||||||
{
|
{
|
||||||
@ -1884,13 +1886,15 @@ try_next_connection_or_finish (GSocketClientAsyncConnectData *data,
|
|||||||
if (data->connection_in_progress)
|
if (data->connection_in_progress)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Keep trying successful connections until one works, each iteration pops one */
|
/* Try to pop and make progress on the next successful_connection. */
|
||||||
while (data->successful_connections)
|
while (data->successful_connections)
|
||||||
{
|
{
|
||||||
if (try_next_successful_connection (data))
|
if (try_next_successful_connection (data))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If there are no more successful_connections which we can make progress on,
|
||||||
|
* try the next address enumeration. */
|
||||||
if (!data->enumeration_completed)
|
if (!data->enumeration_completed)
|
||||||
{
|
{
|
||||||
enumerator_next_async (data, FALSE);
|
enumerator_next_async (data, FALSE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user