next_for_console was not being set null when a service queued for
authorDavin McCall <davmac@davmac.org>
Sun, 19 Jun 2016 14:16:10 +0000 (15:16 +0100)
committerDavin McCall <davmac@davmac.org>
Sun, 19 Jun 2016 14:16:10 +0000 (15:16 +0100)
the console (and was not initialised).

src/service.h

index b1b1963bb70119e39c38a9bdb2093c6bcfb95440..eed59e621cb3094e34b33df119fa7c607bc1493f 100644 (file)
@@ -680,6 +680,7 @@ class ServiceSet
     {
         auto prev_tail = console_queue_tail;
         console_queue_tail = newTail;
+        newTail->next_for_console = nullptr;
         if (! prev_tail) {
             console_queue_head = newTail;
             enable_console_log(false);