Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
up ver
Browse files Browse the repository at this point in the history
close #106
  • Loading branch information
takayama-lily committed Dec 14, 2020
1 parent faf7986 commit 90dbcc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion client.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,19 @@ class AndroidClient extends Client {
this.heartbeat = setInterval(async()=>{
this.doCircle();
try {
if (!this.isOnline())
return;
await wt.heartbeat.call(this);
if (Date.now() - this.send_timestamp >= 59000) {
if (!await core.getMsg.call(this)) {
if (!await core.getMsg.call(this) && this.isOnline()) {
this.logger.warn("GetMsg timeout!");
if (!await core.getMsg.call(this) && this.isOnline())
this.destroy();
}
}
} catch {
if (!this.isOnline())
return;
core.getMsg.call(this);
try {
await wt.heartbeat.call(this);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oicq",
"version": "1.11.4",
"upday": "2020/12/12",
"version": "1.11.5",
"upday": "2020/12/15",
"description": "QQ protocol!",
"main": "client.js",
"types": "client.d.ts",
Expand Down

0 comments on commit 90dbcc2

Please sign in to comment.