pinokiod 3.8.126 → 3.8.128

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.
@@ -772,7 +772,7 @@ class Bin {
772
772
  // }
773
773
  //}
774
774
  console.timeEnd("### Total Install")
775
- await this.init()
775
+ await this.kernel.init()
776
776
  }
777
777
  async installed(r) {
778
778
  if (Array.isArray(r.name)) {
package/kernel/index.js CHANGED
@@ -536,12 +536,13 @@ class Kernel {
536
536
  }
537
537
 
538
538
  // // kill all processes just in case
539
- // await new Promise((resolve, reject) => {
540
- // kill(process.pid, 'SIGKILL', () => {
541
- // console.log("child procs killed for", process.pid)
542
- // resolve()
543
- // });
544
- // })
539
+ await new Promise((resolve, reject) => {
540
+ console.log("killing child processes for", process.pid)
541
+ kill(process.pid, {}, 'SIGKILL', () => {
542
+ console.log("child procs killed for", process.pid)
543
+ resolve()
544
+ });
545
+ })
545
546
 
546
547
  this.info = new Info(this)
547
548
  this.pipe = new Pipe(this)
package/kernel/peer.js CHANGED
@@ -64,13 +64,13 @@ class PeerDiscovery {
64
64
 
65
65
  // Send broadcast pings every interval
66
66
  this.interval_handle = setInterval(() => {
67
- console.log("send message to peers")
67
+ // console.log("send message to peers")
68
68
  //this.socket.send(this.message, 0, this.message.length, this.port, '127.0.0.1');
69
69
  //console.log("sent to 127.0.0.1")
70
70
  //this.socket.send(this.message, 0, this.message.length, this.port, '255.255.255.255');
71
71
  this.socket.send(this.message, 0, this.message.length, this.port, '192.168.1.255');
72
72
  //console.log("sent to 255.255.255.255")
73
- console.log("sent message")
73
+ // console.log("sent message")
74
74
  }, this.interval);
75
75
  });
76
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.126",
3
+ "version": "3.8.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {