Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
f4f7e5f6
Commit
f4f7e5f6
authored
Dec 14, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename an internal ambiguous function
parent
bd1e5e09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt
....mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt
+1
-1
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/TemporaryPacketHandler.kt
...ai/network/protocol/tim/handler/TemporaryPacketHandler.kt
+1
-1
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt
View file @
f4f7e5f6
...
...
@@ -239,7 +239,7 @@ internal class TIMBotNetworkHandler internal constructor(coroutineContext: Corou
temporaryPacketHandlers
.
filter
{
it
.
filter
(
session
,
packet
,
sequenceId
)
}
.
also
{
temporaryPacketHandlers
.
removeAll
(
it
)
}
}.
forEach
{
it
.
doReceive
Without
Exceptions
(
packet
)
it
.
doReceive
Catching
Exceptions
(
packet
)
}
if
(
factory
is
SessionPacketFactory
<
*
>)
{
...
...
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/TemporaryPacketHandler.kt
View file @
f4f7e5f6
...
...
@@ -60,7 +60,7 @@ internal class TemporaryPacketHandler<P : Packet, R>(
internal
inline
fun
filter
(
session
:
BotSession
,
packet
:
Packet
,
sequenceId
:
UShort
):
Boolean
=
expectationClass
.
isInstance
(
packet
)
&&
session
===
this
.
fromSession
&&
if
(
checkSequence
)
sequenceId
==
toSend
.
sequenceId
else
true
internal
suspend
inline
fun
doReceive
Without
Exceptions
(
packet
:
Packet
)
{
internal
suspend
inline
fun
doReceive
Catching
Exceptions
(
packet
:
Packet
)
{
@Suppress
(
"UNCHECKED_CAST"
)
val
ret
=
try
{
withContext
(
callerContext
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment