Fix reconnect

This commit is contained in:
yflory
2018-06-06 17:25:06 +02:00
parent 9c5ad795e1
commit 953d98be96
4 changed files with 10 additions and 6 deletions

View File

@@ -116,6 +116,10 @@ define([], function () {
sframeChan.event('EV_RT_DISCONNECT');
});
padRpc.onConnectEvent.reg(function (data) {
onOpen(data);
});
padRpc.onErrorEvent.reg(function (err) {
sframeChan.event('EV_RT_ERROR', err);
});
@@ -128,8 +132,6 @@ define([], function () {
owners: owners,
password: password,
expire: expire
}, function(data) {
onOpen(data);
});
};