mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Immediately shutdown the http client on exit
This commit is contained in:
parent
7051d8025f
commit
a72eca339f
2 changed files with 3 additions and 3 deletions
2
deps/CMakeLists.txt
vendored
2
deps/CMakeLists.txt
vendored
|
@ -40,7 +40,7 @@ set(MATRIX_STRUCTS_URL https://github.com/mujx/matrix-structs)
|
||||||
set(MATRIX_STRUCTS_TAG eeb7373729a1618e2b3838407863342b88b8a0de)
|
set(MATRIX_STRUCTS_TAG eeb7373729a1618e2b3838407863342b88b8a0de)
|
||||||
|
|
||||||
set(MTXCLIENT_URL https://github.com/mujx/mtxclient)
|
set(MTXCLIENT_URL https://github.com/mujx/mtxclient)
|
||||||
set(MTXCLIENT_TAG 68188721e042ff5b47ea9a87aa97d3a9efbca989)
|
set(MTXCLIENT_TAG 96fd35e57d36511b10b7d30de7227c6cd2ffa386)
|
||||||
|
|
||||||
set(OLM_URL https://git.matrix.org/git/olm.git)
|
set(OLM_URL https://git.matrix.org/git/olm.git)
|
||||||
set(OLM_TAG 4065c8e11a33ba41133a086ed3de4da94dcb6bae)
|
set(OLM_TAG 4065c8e11a33ba41133a086ed3de4da94dcb6bae)
|
||||||
|
|
|
@ -166,9 +166,9 @@ main(int argc, char *argv[])
|
||||||
QObject::connect(&app, &QApplication::aboutToQuit, &w, [&w]() {
|
QObject::connect(&app, &QApplication::aboutToQuit, &w, [&w]() {
|
||||||
w.saveCurrentWindowSize();
|
w.saveCurrentWindowSize();
|
||||||
if (http::v2::client() != nullptr) {
|
if (http::v2::client() != nullptr) {
|
||||||
nhlog::net()->info("shutting down all I/O threads & open connections");
|
nhlog::net()->debug("shutting down all I/O threads & open connections");
|
||||||
http::v2::client()->shutdown();
|
|
||||||
http::v2::client()->close(true);
|
http::v2::client()->close(true);
|
||||||
|
nhlog::net()->debug("bye");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue