Skip to content

Commit 84ab7cb

Browse files
committed
[Com] Close channel when no response after opening CommunicatorClient
1 parent cc5d85b commit 84ab7cb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Source/com/Communicator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ namespace RPC {
520520

521521
if ((result == Core::ERROR_NONE) && (_announceEvent.Lock(waitTime) != Core::ERROR_NONE)) {
522522
result = Core::ERROR_OPENING_FAILED;
523+
BaseClass::Close(0);
523524
}
524525

525526
return (result);
@@ -536,6 +537,7 @@ namespace RPC {
536537

537538
if ((result == Core::ERROR_NONE) && (_announceEvent.Lock(waitTime) != Core::ERROR_NONE)) {
538539
result = Core::ERROR_OPENING_FAILED;
540+
BaseClass::Close(0);
539541
}
540542

541543
return (result);
@@ -554,6 +556,7 @@ namespace RPC {
554556

555557
if ((result == Core::ERROR_NONE) && (_announceEvent.Lock(waitTime) != Core::ERROR_NONE)) {
556558
result = Core::ERROR_OPENING_FAILED;
559+
BaseClass::Close(0);
557560
}
558561

559562
return (result);

Source/com/IUnknown.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ namespace ProxyStub {
429429
// Invalidate(), It is safe to use it on the _channel in an unlocked
430430
// fashion!!
431431
uint32_t Id() const;
432+
432433
bool Invalidate() {
433434
bool succeeded = false;
434435
ASSERT(_refCount > 0);

0 commit comments

Comments
 (0)