@ives_xxz/framework 2.3.10 → 2.3.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "2.3.10",
3
+ "version": "2.3.11",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": ["123456"],
@@ -294,10 +294,14 @@ export default class FWSocket extends FW.Service implements FW.Socket {
294
294
  private onSocketClose() {
295
295
  FW.Log.debug('on close!');
296
296
  this.socketHandle?.onClose?.();
297
- this.socket.onclose = null;
298
- this.socket.onerror = null;
299
- this.socket.onmessage = null;
300
- this.socket.onopen = null;
297
+
298
+ if (this.socket) {
299
+ this.socket.onclose = null;
300
+ this.socket.onerror = null;
301
+ this.socket.onmessage = null;
302
+ this.socket.onopen = null;
303
+ }
304
+
301
305
  FW.Entry.timeMgr.scheduleOnce(
302
306
  () => {
303
307
  if (