deprecate dispose()

bad practice
This commit is contained in:
Michael Davidsaver
2017-06-20 20:30:37 +02:00
parent e7c6b83c43
commit 46137f96bb
3 changed files with 10 additions and 3 deletions

View File

@@ -55,7 +55,14 @@ ServerContextImpl::ServerContextImpl():
ServerContextImpl::~ServerContextImpl()
{
dispose();
try
{
shutdown();
}
catch(std::exception& e)
{
std::cerr<<"Error in: ServerContextImpl::dispose: "<<e.what()<<"\n";
}
}
const GUID& ServerContextImpl::getGUID()