SpringSource/spring-integration — pull request #603 by garyrussell (2012-08-31 15:48:14+00:00)
Title: INT-2603 Fix TCP Shutdown Delay

A taskExecutor thread could deadlock in getTaskExector() if
stop() is attempting to shut down the task executor.

This could delay the stop by up to 20 seconds.

Move the if(isActive) test outside of the synchronized
block.