File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -730,7 +730,7 @@ to the websocket protocol.
730730 conn
731731 (websocket-sentinel url conn key protocols extensions custom-header-alist nowait))
732732 (set-process-query-on-exit-flag conn nil )
733- (websocket-handshake url conn key protocols extensions custom-header-alist)
733+ (websocket-ensure- handshake url conn key protocols extensions custom-header-alist)
734734 websocket))
735735
736736(defun websocket-sentinel (url conn key protocols extensions custom-header-alist nowait )
@@ -739,13 +739,13 @@ to the websocket protocol.
739739 (websocket-debug websocket " State change to %s" change)
740740 (let ((status (process-status process)))
741741 (when (and nowait (eq status 'open ))
742- (websocket-handshake url conn key protocols extensions custom-header-alist))
742+ (websocket-ensure- handshake url conn key protocols extensions custom-header-alist))
743743
744744 (when (and (member status '(closed failed exit signal))
745745 (not (eq 'closed (websocket-ready-state websocket))))
746746 (websocket-try-callback 'websocket-on-close 'on-close websocket))))))
747747
748- (defun websocket-handshake (url conn key protocols extensions custom-header-alist )
748+ (defun websocket-ensure- handshake (url conn key protocols extensions custom-header-alist )
749749 (let ((url-struct (url-generic-parse-url url))
750750 (websocket (process-get conn :websocket )))
751751 (when (and (eq 'connecting (websocket-ready-state websocket))
You can’t perform that action at this time.
0 commit comments