Add error handler for failing DNS requests; the Client should be able to take its...
[citadel.git] / citadel / event_client.c
index a265f30bedcc648530eb38469505a3def284c21c..f1abcbef7ff9396550809c03be7b3af22edec87e 100644 (file)
@@ -591,11 +591,11 @@ IO_postdns_callback(struct ev_loop *loop, ev_idle *watcher, int revents)
        AsyncIO *IO = watcher->data;
        syslog(LOG_DEBUG, "event: %s\n", __FUNCTION__);
        become_session(IO->CitContext);
-
+       assert(IO->DNSFail);
        switch (IO->DNSQuery->PostDNS(IO))
        {
        case eAbort:
-           ShutDownCLient(IO);
+               IO->DNSFail(IO);
        default:
            break;
        }