diff options
| author | LLLL Colonq <llll@colonq> | 2024-04-26 01:53:24 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-04-26 01:53:24 -0400 |
| commit | 6fa49e57f7313aad8852ce2721c2fcf7d0cec030 (patch) | |
| tree | 34a2e4a851c663bc6d71d148e59b59ba345a5fdb /src/wasp-db.el | |
| parent | 782c667e824d426b5443591afeefc37d0ae17785 (diff) | |
Updates
Diffstat (limited to 'src/wasp-db.el')
| -rw-r--r-- | src/wasp-db.el | 11 |
1 files changed, 6 insertions, 5 deletions
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." |
