Skip to content

Commit 061621d

Browse files
committed
Fixed: shutdown of applications when the server fails to initialize
1 parent dce687b commit 061621d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

projects/qt-creator/httpserver.pro.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE QtCreatorProject>
3-
<!-- Written by QtCreator 3.5.1, 2015-12-17T18:30:09. -->
3+
<!-- Written by QtCreator 3.5.1, 2015-12-21T23:37:40. -->
44
<qtcreator>
55
<data>
66
<variable>EnvironmentId</variable>

src/Server.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ namespace HttpServer
11511151
module.open(module_name);
11521152

11531153
#elif POSIX
1154-
// HACK: for posix system - load new version shared library
1154+
// HACK: for posix system load new version shared library
11551155

11561156
size_t dir_pos = module_name.rfind('/');
11571157
size_t ext_pos = module_name.rfind('.');
@@ -1469,6 +1469,7 @@ namespace HttpServer
14691469
if (this->server_sockets.empty() )
14701470
{
14711471
std::cout << "Error: do not open any socket;" << std::endl;
1472+
clear();
14721473
return 2;
14731474
}
14741475

0 commit comments

Comments
 (0)