diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-06 19:25:37 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-06 19:25:37 -0200 |
commit | e24c1f2cd6e50fe184781c73c2e204f175e3e70a (patch) | |
tree | 5e1883af51799d3abb6576c6564364174d655663 /sx-request.el | |
parent | 1874b560599f5937c7f9301057a18665a3840150 (diff) | |
parent | f099001018a8436f1843002e9192a4bf160e5a76 (diff) |
Merge pull request #207 from vermiculus/vermiculus/hotfix-request-buffers
Hotfix kill response buffers after request
Diffstat (limited to 'sx-request.el')
-rw-r--r-- | sx-request.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sx-request.el b/sx-request.el index 0d618d5..6f95687 100644 --- a/sx-request.el +++ b/sx-request.el @@ -191,6 +191,7 @@ the main content of the response is returned." ;; RESPONSE to 'corrupt or something (response (with-demoted-errors "`json' error: %S" (json-read-from-string data)))) + (kill-buffer response-buffer) (when (and (not response) (string-equal data "{}")) (sx-message "Unable to parse response: %S" response) (error "Response could not be read by `json-read-from-string'")) |