@floating-live/bilibili 0.16.15 → 0.16.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/room.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floating-live/bilibili",
3
- "version": "0.16.15",
3
+ "version": "0.16.16",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,5 +33,5 @@
33
33
  "peerDependencies": {
34
34
  "floating-live": "^0.16.6"
35
35
  },
36
- "gitHead": "81f8f2287b42485fa877f023201ff332a927ff28"
36
+ "gitHead": "67c413a99f964efabfec55c90fc5803c653a6c62"
37
37
  }
package/room.js CHANGED
@@ -256,6 +256,7 @@ export class RoomBilibili extends LiveRoom {
256
256
  // 自动重连
257
257
  if (this.opened && this.autoReconnect) {
258
258
  const timeout = this.lastConnectionTime + this.connectInterval - Date.now();
259
+ this.lastConnectionTime = Date.now();
259
260
  if (timeout > 0) {
260
261
  const t = setTimeout(() => {
261
262
  this.reconnect();