simplified connect redispatch logic
This commit is contained in:
parent
59bc934dc1
commit
8aa919b28a
|
@ -465,8 +465,7 @@ open class Client<CONNECTION : Connection>(
|
|||
|
||||
// on the client, we must GUARANTEE that the disconnect/close completes before NEW connect begins.
|
||||
// we will know this if we are running inside an INTERNAL dispatch that is NOT the connect dispatcher!
|
||||
val currentDispatcher = EventDispatcher.getCurrentEvent()
|
||||
if (currentDispatcher != null && currentDispatcher != EventDispatcher.CONNECT) {
|
||||
if (EventDispatcher.getCurrentEvent() != EventDispatcher.CONNECT) {
|
||||
EventDispatcher.CONNECT.launch {
|
||||
connect(
|
||||
remoteAddress = remoteAddress,
|
||||
|
|
Loading…
Reference in New Issue