Commit 99e2623d61197c6599a290263a65ca60693246d2
1 parent
6a5f9fa610
Exists in
master
Silent on ping to mysself
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -150,7 +150,8 @@ bot.on('subscribe', (from) => { |
150 | 150 | }); |
151 | 151 | |
152 | 152 | function ping() { |
153 | - if (isReady) send(config.username, `PING ${uniqid()}`); | |
153 | + const xid = uniqid(); | |
154 | + if (isReady) sender.send(config.username, `PING ${xid}`, xid, true); | |
154 | 155 | } |
155 | 156 | |
156 | 157 | function init() { |