Fix bug in rosrun/terminate-and-restart

This commit is contained in:
Bhaskara Marthi 2011-11-03 15:08:36 +00:00
parent ad18deb25f
commit 2d337d3891
1 changed files with 2 additions and 2 deletions

View File

@ -1433,8 +1433,8 @@ Prefix argument allows you to edit the rosrun command before executing it."
(set-process-sentinel process '(lambda (proc event)
(let ((buf (process-buffer proc)))
(message "%s has terminated; restarting" ros-run-executable)
(rosrun/restart))))
(rosemacs/terminate-process process))
(rosrun/restart (current-buffer)))))
(rosemacs/terminate-process))
(error "Buffer does not contain a running process"))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;