akka/akka — pull request #2001 by patriknw (2014-02-10 13:43:41+00:00)
Title: =rem #3867 Make sure endpointWriter is terminated before ungate

* actor name [endpointWriter] is not unique
* The problem was that the test used 100ms until ungate and
that made it possible for the endpointWriter to not be
completely terminated (and removed) before Ungate and
new Send in idle state, which created new endpointWriter
* I could reproduce it with a sleep in EndpointWriter.postStop
* The solution is to start the scheduled Ungate after Terminated
has been received