diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-07-24 09:32:54 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-07-24 09:32:54 +0530 |
| commit | 7d36403836511ab0745791ce98498cf5112633c1 (patch) | |
| tree | bb1f998e3ce8fc99a8611dc64d578ca269c56b01 /src/uci.c | |
| parent | e6cead853d66b4ea9ea8d9c6dba33e5a1720a99d (diff) | |
Diffstat (limited to 'src/uci.c')
| -rw-r--r-- | src/uci.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -59,6 +59,7 @@ void handle_ipc(ipc_state_t *state) { assert(signal < UCI_SIGNAL_COUNT); if (signal == UCI_SIGNAL_NONE) return; if (signal == UCI_SIGNAL_QUIT) { + ipc_state_set_event(state, EVENT_QUIT); return; } if (signal == UCI_SIGNAL_GO) { @@ -151,7 +152,9 @@ void handle_ipc(ipc_state_t *state) { return; } if (signal == UCI_SIGNAL_STOP) { - printf("uci stopping\n"); + ipc_state_set_event(state, EVENT_ENGINE_STOP); + state->uci_state.signal = UCI_SIGNAL_NONE; + state->uci_state.current_state = UCI_STATE_IDLE; return; } } |
