We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a293c commit b0e1333Copy full SHA for b0e1333
kcp.go
@@ -862,7 +862,8 @@ func (kcp *KCP) Update() {
862
// Important to reduce unnacessary ikcp_update invoking. use it to
863
// schedule ikcp_update (eg. implementing an epoll-like mechanism,
864
// or optimize ikcp_update when handling massive kcp connections)
865
-func (kcp *KCP) Check(current uint32) uint32 {
+func (kcp *KCP) Check() uint32 {
866
+ current := currentMs()
867
ts_flush := kcp.ts_flush
868
tm_flush := int32(0x7fffffff)
869
tm_packet := int32(0x7fffffff)
0 commit comments