mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 06:28:29 +01:00
fix overflow bug
This commit is contained in:
parent
929efb45bf
commit
ee3cfe92bd
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -181,9 +181,9 @@ class AntunnelApi
|
||||
@ready().then ()=>
|
||||
# insert it to pending list
|
||||
sub.tunnel = @
|
||||
sub.id = Math.floor(Math.random()*100000) + 1
|
||||
sub.id = Math.floor(Math.random()*1000) + 1
|
||||
while @subscribers[sub.id] or @pending[sub.id]
|
||||
sub.id = Math.floor(Math.random()*100000) + 1
|
||||
sub.id = Math.floor(Math.random()*1000) + 1
|
||||
@pending[sub.id] = sub
|
||||
# send request to connect to a channel
|
||||
@send sub.genmsg Msg.SUBSCRIBE, (new TextEncoder()).encode(sub.channel)
|
||||
|
Loading…
Reference in New Issue
Block a user