fix: chat lag
This commit is contained in:
parent
a97cbc2667
commit
de52716bbb
|
@ -35,7 +35,7 @@ export default function Chat() {
|
||||||
setActivity(await socket.send(['Activity']));
|
setActivity(await socket.send(['Activity']));
|
||||||
}, 2000, {leading: true});
|
}, 2000, {leading: true});
|
||||||
if (!channel) {
|
if (!channel) {
|
||||||
handle = setInterval(load, 300);
|
handle = setInterval(load, 20);
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
if (handle) {
|
if (handle) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user