mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
Properly cleanup if jupyter-start-kernel
fails in jupyter-start-new-kernel
This commit is contained in:
parent
3e57114a18
commit
060340625e
1 changed files with 3 additions and 3 deletions
|
@ -314,11 +314,11 @@ un-paused."
|
|||
(let (km kc)
|
||||
(setq km (jupyter-kernel-manager :name kernel-name))
|
||||
(setq kc (jupyter-make-client km client-class))
|
||||
(jupyter-start-channels kc)
|
||||
(jupyter-hb-unpause (oref kc hb-channel))
|
||||
(jupyter-start-kernel km 10)
|
||||
(unwind-protect
|
||||
(progn
|
||||
(jupyter-start-channels kc)
|
||||
(jupyter-hb-unpause (oref kc hb-channel))
|
||||
(jupyter-start-kernel km 10)
|
||||
(unless (jupyter--wait-until-startup kc 10)
|
||||
(error "Kernel did not send startup message"))
|
||||
(let ((info (jupyter-wait-until-received :kernel-info-reply
|
||||
|
|
Loading…
Add table
Reference in a new issue