diff options
Diffstat (limited to 'Userland/Services/ChessEngine/ChessEngine.cpp')
-rw-r--r-- | Userland/Services/ChessEngine/ChessEngine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Services/ChessEngine/ChessEngine.cpp b/Userland/Services/ChessEngine/ChessEngine.cpp index a5395cb906..70a3a5d554 100644 --- a/Userland/Services/ChessEngine/ChessEngine.cpp +++ b/Userland/Services/ChessEngine/ChessEngine.cpp @@ -68,3 +68,9 @@ void ChessEngine::handle_quit() if (on_quit) on_quit(ESUCCESS); } + +void ChessEngine::handle_unexpected_eof() +{ + if (on_quit) + on_quit(EPIPE); +} |