robustness
authorVolker Birk <vb@pep-project.org>
Sun, 19 Jun 2016 08:27:39 +0200
changeset 938bb66806109b
parent 92 bd0cd4106700
child 94 59e25c32911a
robustness
pEpCOMServerAdapter.cpp
     1.1 --- a/pEpCOMServerAdapter.cpp	Sun Jun 19 08:23:37 2016 +0200
     1.2 +++ b/pEpCOMServerAdapter.cpp	Sun Jun 19 08:27:39 2016 +0200
     1.3 @@ -16,8 +16,13 @@
     1.4  public:
     1.5      CpEpCOMServerAdapterModule() : ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >(), gatekeeper_thread(NULL)
     1.6      {
     1.7 -        gatekeeper_thread = new thread(gatekeeper, this);
     1.8 -        gatekeeper_thread->detach();
     1.9 +        try {
    1.10 +            gatekeeper_thread = new thread(gatekeeper, this);
    1.11 +            gatekeeper_thread->detach();
    1.12 +        }
    1.13 +        catch (system_error&) {
    1.14 +
    1.15 +        }
    1.16      }
    1.17  
    1.18  	DECLARE_LIBID(LIBID_pEpCOMServerAdapterLib)