Skip to content

Commit b0e1333

Browse files
committed
uniform internal api
1 parent b3a293c commit b0e1333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kcp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,8 @@ func (kcp *KCP) Update() {
862862
// Important to reduce unnacessary ikcp_update invoking. use it to
863863
// schedule ikcp_update (eg. implementing an epoll-like mechanism,
864864
// or optimize ikcp_update when handling massive kcp connections)
865-
func (kcp *KCP) Check(current uint32) uint32 {
865+
func (kcp *KCP) Check() uint32 {
866+
current := currentMs()
866867
ts_flush := kcp.ts_flush
867868
tm_flush := int32(0x7fffffff)
868869
tm_packet := int32(0x7fffffff)

0 commit comments

Comments
 (0)