Skip to content

Commit 1f086f1

Browse files
committed
Update to version 1.14
This version has a bug fix for properly setting the websocket to closed when it is closed abnormally.
1 parent 6954d08 commit 1f086f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

websocket.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; Author: Andrew Hyatt <[email protected]>
66
;; Homepage: https://github.com/ahyatt/emacs-websocket
77
;; Keywords: Communication, Websocket, Server
8-
;; Version: 1.13.1
8+
;; Version: 1.14
99
;; Package-Requires: ((cl-lib "0.5"))
1010
;;
1111
;; This program is free software; you can redistribute it and/or
@@ -720,6 +720,7 @@ to the websocket protocol.
720720

721721
(when (and (member status '(closed failed exit signal))
722722
(not (eq 'closed (websocket-ready-state websocket))))
723+
(setf (websocket-ready-state websocket) 'closed)
723724
(websocket-try-callback 'websocket-on-close 'on-close websocket))))))
724725

725726
(defun websocket-ensure-handshake (url conn key protocols extensions custom-header-alist nowait)

0 commit comments

Comments
 (0)