Browse Source

fix when rpc callback is missing

pull/18/head
Sun 4 years ago
parent
commit
bdda67c250
  1. 6
      lib/rpc.dart

6
lib/rpc.dart

@ -151,7 +151,11 @@ class WebSocketsNotifications {
} }
if (gid == Global.gid || method.startsWith('account')) { if (gid == Global.gid || method.startsWith('account')) {
callbacks[0](params); try {
callbacks[0](params);
} catch (_e) {
print('function is unvalid');
}
} else if (callbacks[1] != null && callbacks[1]) { } else if (callbacks[1] != null && callbacks[1]) {
_notice!(gid); _notice!(gid);
} }

Loading…
Cancel
Save