Skip to content

Commit

Permalink
Merge pull request #65 from garyhodgson/master
Browse files Browse the repository at this point in the history
Fixes Issue #63 (Ping bug in debug UI ?) https://github.com/jinroh/kadoh...
  • Loading branch information
alexstrat committed Oct 6, 2013
2 parents e36d2ac + 080ce7c commit 01ab26b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UI/js/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ KadOHui.Control.prototype = {
.button('toggle');
that.pingResult.empty();
var address = that.pingAddress.val();
var peer = new (require('/dht/bootstrap-peer'))(address);
var ping = that.node._reactor.PING(peer);
var peer = new (require('/lib/dht/bootstrap-peer'))(address);
var ping = new (require('/lib/network/rpc/ping'))(peer);

ping.then(function() {
that.pingResult.html('<img src="/UI/img/success-icon24.png">'+
'<code>'+ping.getQueried().getID()+'</code>');
Expand All @@ -109,6 +110,8 @@ KadOHui.Control.prototype = {
that.pingBtn.click(onPing)
.button('toggle');
});

that.node._reactor.sendRPC(ping)
};
this.pingBtn.click(onPing);
return this;
Expand Down

0 comments on commit 01ab26b

Please sign in to comment.