File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ namespace {
57
57
_service->Register (&_notification);
58
58
59
59
string result;
60
- _implementation = _service->Root <Exchange::IPackager>(_connectionId, 2000 , _T (" PackagerImplementation" ));
60
+ _implementation = _service->Root <Exchange::IPackager>(_connectionId, 5000 , _T (" PackagerImplementation" ));
61
61
if (_implementation == nullptr ) {
62
62
result = _T (" Couldn't create package instance" );
63
63
_service->Unregister (&_notification);
@@ -73,9 +73,11 @@ namespace {
73
73
{
74
74
ASSERT (_service == service);
75
75
76
- _service->Unregister (&_notification);
76
+ if (_service != nullptr ) {
77
+ _service->Unregister (&_notification);
78
+ }
77
79
78
- if (_implementation->Release () != Core::ERROR_DESTRUCTION_SUCCEEDED) {
80
+ if (_implementation != nullptr && _implementation ->Release () != Core::ERROR_DESTRUCTION_SUCCEEDED) {
79
81
80
82
ASSERT (_connectionId != 0 );
81
83
You can’t perform that action at this time.
0 commit comments