From 73a810ac18b59faf6d7d8bacac0f61fdb9aec545 Mon Sep 17 00:00:00 2001 From: Johannes Schriewer Date: Tue, 31 Jul 2018 19:24:41 +0200 Subject: [PATCH] Add fixme, remove copy and paste error --- platform/linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linux.c b/platform/linux.c index bffeade..f0c5e89 100644 --- a/platform/linux.c +++ b/platform/linux.c @@ -94,7 +94,8 @@ PlatformStatusCode platform_resolve_host(char *hostname , char *ip) { DEBUG_LOG("Resolving host failed: %s", gai_strerror(ret)); return PlatformStatusError; } - + + // FIXME: we do not try to connect here, perhaps return a list or just the first // loop through all the results and connect to the first we can for(struct addrinfo *p = servinfo; p != NULL; p = p->ai_next) { h = (struct sockaddr_in *)p->ai_addr; @@ -165,8 +166,7 @@ PlatformStatusCode platform_read(MQTTHandle *handle, Buffer *buffer) { continue; } - /* Set reader task to dead */ - handle->reader_alive = false; + /* Some error occured */ return PlatformStatusError; }