Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix case where websocket collision crashes frames #227

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
switch to message to avoid invoking the debugger
  • Loading branch information
Hayden Stanko committed Mar 24, 2022
commit 0e8537c2d00f56874dd61e00ecf431decd82bc57
4 changes: 2 additions & 2 deletions org-roam-ui.el
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ This serves the web-build and API over HTTP."
:init-value nil
(cond
((and org-roam-ui-mode (not org-roam-ui-server-running))
(debug "org-roam-ui server :: starting up...")
(message "org-roam-ui server :: starting up...")
;;; check if the default keywords actually exist on `orb-preformat-keywords'
;;; else add them
(setq-local httpd-port org-roam-ui-port)
@@ -202,7 +202,7 @@ This serves the web-build and API over HTTP."
(message (format "org-roam-ui server already runnning.")))
(t
(progn
(debug "org-roam-ui server :: shutting down...")
(message "org-roam-ui server :: shutting down...")
(websocket-server-close org-roam-ui-ws-server)
(httpd-stop)
(setq org-roam-ui-server-running nil)