Fix awaitDisconnection()

This commit is contained in:
Him188 2020-02-14 22:27:45 +08:00
parent 2b464a287e
commit 04bed22ea2

View File

@ -531,5 +531,5 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
super.close(cause)
}
override suspend fun awaitDisconnection() = _packetReceiverJob?.join() ?: Unit
override suspend fun awaitDisconnection() = supervisor.join()
}