nmcs: add error message when a HTTP request times out

https://bugzilla.redhat.com/show_bug.cgi?id=1821787
(cherry picked from commit 3bd30f6064)
This commit is contained in:
Antonio Cardace 2020-06-18 18:15:58 +02:00 committed by Thomas Haller
parent b7d53f0d3a
commit 20a6fa7d1b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -345,7 +345,8 @@ _poll_timeout_cb (gpointer user_data)
{
PollTaskData *poll_task_data = user_data;
_poll_return (poll_task_data, FALSE, NULL);
_poll_return (poll_task_data, FALSE, nm_utils_error_new (NM_UTILS_ERROR_UNKNOWN,
"timeout expired"));
return G_SOURCE_CONTINUE;
}