aboutsummaryrefslogtreecommitdiff
path: root/dep/acelite/ace/Strategies_T.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-09-17 23:50:08 +0100
committerNay <dnpd.dd@gmail.com>2012-09-17 23:50:08 +0100
commit23961d0dce22e234e62f116469f04bb62d8986a7 (patch)
treeab271f0a3fffa8f21f9ac7fd669f457beb9eb356 /dep/acelite/ace/Strategies_T.cpp
parent2431895a54b38e4c0e6444c740ff2298e31e26e2 (diff)
parent2e21fa6b925c4572d620248f1b149a5d652836b2 (diff)
Merge remote-tracking branch 'origin/master' into mmaps
Diffstat (limited to 'dep/acelite/ace/Strategies_T.cpp')
-rw-r--r--dep/acelite/ace/Strategies_T.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/dep/acelite/ace/Strategies_T.cpp b/dep/acelite/ace/Strategies_T.cpp
index fbbc1a5bc93..28d786489ad 100644
--- a/dep/acelite/ace/Strategies_T.cpp
+++ b/dep/acelite/ace/Strategies_T.cpp
@@ -1,4 +1,4 @@
-// $Id: Strategies_T.cpp 89510 2010-03-17 12:21:14Z vzykov $
+// $Id: Strategies_T.cpp 95630 2012-03-22 13:04:47Z johnnyw $
#ifndef ACE_STRATEGIES_T_CPP
#define ACE_STRATEGIES_T_CPP
@@ -1011,12 +1011,15 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::connect_s
return result;
}
- // For all successful cases: mark the <svc_handler> in the cache
- // as being <in_use>. Therefore recyclable is BUSY.
- entry->ext_id_.recycle_state (ACE_RECYCLABLE_BUSY);
+ if (entry)
+ {
+ // For all successful cases: mark the <svc_handler> in the cache
+ // as being <in_use>. Therefore recyclable is BUSY.
+ entry->ext_id_.recycle_state (ACE_RECYCLABLE_BUSY);
- // And increment the refcount
- entry->ext_id_.increment ();
+ // And increment the refcount
+ entry->ext_id_.increment ();
+ }
return 0;
}