Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit 68da1e6

Browse files
committed
fix bug to allow pool shutdown and restart in running app
1 parent 96bfef3 commit 68da1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/danga/MemCached/SockIOPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,6 @@ public void shutDown() {
12101210
while ( maintThread.isRunning() ) {
12111211
log.debug( "++++ waiting for main thread to finish run +++" );
12121212
try { Thread.sleep( 500 ); } catch ( Exception ex ) { }
1213-
12141213
}
12151214
}
12161215

@@ -1223,6 +1222,7 @@ public void shutDown() {
12231222
consistentBuckets = null;
12241223
hostDeadDur = null;
12251224
hostDead = null;
1225+
maintThread = null;
12261226
initialized = false;
12271227
log.debug( "++++ SockIOPool finished shutting down." );
12281228
}

0 commit comments

Comments
 (0)