forked from LeenkxTeam/LNXSDK
P2P onLeft trigger onClose
This commit is contained in:
@ -94,6 +94,7 @@ class CreateLeenkxNode extends LogicNode {
|
|||||||
lnxCn.onLeft = function(address) {
|
lnxCn.onLeft = function(address) {
|
||||||
Leenkx.id.set(net_Url, address);
|
Leenkx.id.set(net_Url, address);
|
||||||
sock.onleft();
|
sock.onleft();
|
||||||
|
sock.onclose();
|
||||||
};
|
};
|
||||||
lnxCn.onServer = function(address) {
|
lnxCn.onServer = function(address) {
|
||||||
Leenkx.id.set(net_Url, address);
|
Leenkx.id.set(net_Url, address);
|
||||||
@ -106,6 +107,7 @@ class CreateLeenkxNode extends LogicNode {
|
|||||||
lnxCn.onTimeout = function(address) {
|
lnxCn.onTimeout = function(address) {
|
||||||
Leenkx.id.set(net_Url, address);
|
Leenkx.id.set(net_Url, address);
|
||||||
sock.ontimeout();
|
sock.ontimeout();
|
||||||
|
sock.onclose();
|
||||||
};
|
};
|
||||||
lnxCn.onWireLeft = function(wirecount, wire) {
|
lnxCn.onWireLeft = function(wirecount, wire) {
|
||||||
Leenkx.data.set(net_Url, wirecount);
|
Leenkx.data.set(net_Url, wirecount);
|
||||||
|
|||||||
Reference in New Issue
Block a user