commit 287ac2c28639ae7663ccf652cbff9f54041bf0fc
parent c5833141763a2b2fc80271cacbacd0ab87074e12
Author: Jacob R. Edwards <n/a>
Date: Sun, 9 Oct 2022 09:07:35 -0700
Fix status command
It used aps_bufstatus in the command function itself, causing
multiple protocol level status messages to be sent to the client.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aps/command.c b/aps/command.c
@@ -208,7 +208,7 @@ com_status(struct aps *aps, int fd, int argc, char **argv)
bug("impossible player state");
}
- if (aps_bufstatus(aps, fd, status))
+ if (aps_bufline(aps, fd, status))
return errstr;
return NULL;
}