@yuneta/gobj-js 7.7.0 → 7.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2633,10 +2633,16 @@
2633
2633
  function set_log_callback(fn) {
2634
2634
  __log_callback__ = typeof fn === "function" ? fn : null;
2635
2635
  }
2636
+ var __in_log_callback__ = false;
2636
2637
  function emit_log_callback(level, msg, hora) {
2637
- if (__log_callback__) try {
2638
- __log_callback__(level, msg, hora);
2639
- } catch (e) {}
2638
+ if (__log_callback__ && !__in_log_callback__) {
2639
+ __in_log_callback__ = true;
2640
+ try {
2641
+ __log_callback__(level, msg, hora);
2642
+ } catch (e) {} finally {
2643
+ __in_log_callback__ = false;
2644
+ }
2645
+ }
2640
2646
  }
2641
2647
  function set_remote_log_functions(remote_log_fn) {
2642
2648
  if (remote_log_fn) {