mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 11:48:21 +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 ()=>
|
@ready().then ()=>
|
||||||
# insert it to pending list
|
# insert it to pending list
|
||||||
sub.tunnel = @
|
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]
|
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
|
@pending[sub.id] = sub
|
||||||
# send request to connect to a channel
|
# send request to connect to a channel
|
||||||
@send sub.genmsg Msg.SUBSCRIBE, (new TextEncoder()).encode(sub.channel)
|
@send sub.genmsg Msg.SUBSCRIBE, (new TextEncoder()).encode(sub.channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user