diff --git a/Console/main.cpp b/Console/main.cpp index 74d7e47..65eadd8 100644 --- a/Console/main.cpp +++ b/Console/main.cpp @@ -42,5 +42,10 @@ int main(int argc, char* argv[]) helper->RunWorker(core.get()); helper->Connect(); + QObject::connect(core.get(), &ClientCore::sigDisconnect, [&app](){ + qWarning() << "Abnormal state, quit..."; + app.exit(); + }); + return app.exec(); } diff --git a/Note/version.md b/Note/version.md index ca7ac27..9c7b141 100644 --- a/Note/version.md +++ b/Note/version.md @@ -8,6 +8,7 @@ | 序号 | 类型 | 内容 | 说明 | 基于版本 | 完成版本 | | :--: | :--: | ------------------------------------------------------------ | :--: | :------: | :------: | +| 39 | 优化 | Console端断联后应当自动退出。 | | 0.2.3 | 0.2.4 | | 38 | 功能 | PE中使用没有拖拽功能,文件管理器要有下载/上传按钮。 | | 0.2.3 | | | 37 | 问题 | 未连接对方客户端时,执行对照传输会崩溃。 | | 0.2.3 | | | 36 | 功能 | 备份文件功能。 | | 0.2.3 | |