diff --git a/src/ssh/Input.hxx b/src/ssh/Input.hxx index a9c568e..ed39a08 100644 --- a/src/ssh/Input.hxx +++ b/src/ssh/Input.hxx @@ -56,8 +56,6 @@ class Input final : ThreadJob { */ std::mutex mutex; - std::exception_ptr error; - /** * Raw input from the socket. It may need to be decrypted. */ @@ -75,6 +73,12 @@ class Input final : ThreadJob { */ BufferList decrypted_list; + /** + * An error caught inside of Run() which will be rethrown to + * the main thread by ReadPacket(). + */ + std::exception_ptr error; + bool encrypted = false; /**