pEpCOMServerAdapter.cpp
changeset 93 8bb66806109b
parent 91 0cddbdb0973f
child 96 7c1816ce1dbd
     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)