We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d875cbf commit 71cb73bCopy full SHA for 71cb73b
main/WebServerHelper.cpp
@@ -70,12 +70,16 @@ namespace http {
70
void CWebServerHelper::StopServers()
71
{
72
for (server_iterator it = serverCollection.begin(); it != serverCollection.end(); ++it) {
73
- (*it)->StopServer();
+ ((CWebServer*) *it)->StopServer();
74
+ delete (*it);
75
}
76
+ serverCollection.clear();
77
#ifndef NOCLOUD
78
for (proxy_iterator it = proxymanagerCollection.begin(); it != proxymanagerCollection.end(); ++it) {
- (*it)->Stop();
79
+ ((CProxyManager*) *it)->Stop();
80
81
82
+ proxymanagerCollection.clear();
83
#endif
84
85
0 commit comments