]> git.pond.sub.org Git - empserver/commitdiff
Journal input of special cookies "ctld" and "aborted"
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 29 Apr 2008 19:42:17 +0000 (21:42 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 29 Apr 2008 19:42:17 +0000 (21:42 +0200)
The latter is necessary to interpret the journal correctly.  The
former isn't, as it should always lead to a logout straight away, but
treating it just the same is simple and doesn't hurt.

src/lib/player/recvclient.c

index 87edb96020a811a822b1191f4e6cead979f6c629..169a1424ca9ef7ecf841291da332cb41c1957ca5 100644 (file)
@@ -68,6 +68,7 @@ recvclient(char *cmd, int size)
                player->eof = 1;
            if (strcmp(cmd, "aborted") == 0)
                player->aborted = 1;
+           journal_input(cmd);
            break;
        }
 
@@ -94,6 +95,5 @@ recvclient(char *cmd, int size)
     if (player->aborted)
        return -2;
 
-    journal_input(cmd);
     return count;
 }