From 6fa49e57f7313aad8852ce2721c2fcf7d0cec030 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 26 Apr 2024 01:53:24 -0400 Subject: Updates --- src/wasp-db.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/wasp-db.el') diff --git a/src/wasp-db.el b/src/wasp-db.el index 516fcfde..b56fe40a 100644 --- a/src/wasp-db.el +++ b/src/wasp-db.el @@ -76,11 +76,12 @@ If not, return nil." (insert data) (set-marker (process-mark proc) (point)) (goto-char (point-min)) - (condition-case err - (while (w/db-parse-response)) - (error - (w/write-chat-event (format "Database crashed, error: %s" err)) - (w/db-disconnect))))) + (when (s-suffix? "\r\n" (buffer-string)) + (condition-case err + (while (w/db-parse-response)) + (error + (w/write-chat-event (format "Database crashed, error: %s" err)) + (w/db-disconnect)))))) (defun w/db-encode (x) "Encode X for Redis." -- cgit v1.2.3