Problem
The stop/0 functions in underack.supervisor and underack.busboard call gen_server:call on supervisor processes. Supervisors are not gen_servers, so these calls will fail.
Current Code
In src/underack/supervisor.lfe:
(defun stop ()
(gen_server:call (SERVER) 'stop))
In src/underack/busboard.lfe:
(defun stop ()
(gen_server:call (SERVER) 'stop))
Suggested Fix
Either:
- Remove these functions and let application shutdown handle supervisor termination
- Use appropriate supervisor API calls
- If explicit stop is needed, consider
supervisor:terminate_child/2 or sending a shutdown signal
Files
src/underack/supervisor.lfe
src/underack/busboard.lfe
Priority
P0 - These functions will crash when called.
Problem
The
stop/0functions inunderack.supervisorandunderack.busboardcallgen_server:callon supervisor processes. Supervisors are not gen_servers, so these calls will fail.Current Code
In
src/underack/supervisor.lfe:In
src/underack/busboard.lfe:Suggested Fix
Either:
supervisor:terminate_child/2or sending a shutdown signalFiles
src/underack/supervisor.lfesrc/underack/busboard.lfePriority
P0 - These functions will crash when called.