@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.
@@ -2631,10 +2631,16 @@ var gobjJs = (function(exports) {
2631
2631
  function set_log_callback(fn) {
2632
2632
  __log_callback__ = typeof fn === "function" ? fn : null;
2633
2633
  }
2634
+ var __in_log_callback__ = false;
2634
2635
  function emit_log_callback(level, msg, hora) {
2635
- if (__log_callback__) try {
2636
- __log_callback__(level, msg, hora);
2637
- } catch (e) {}
2636
+ if (__log_callback__ && !__in_log_callback__) {
2637
+ __in_log_callback__ = true;
2638
+ try {
2639
+ __log_callback__(level, msg, hora);
2640
+ } catch (e) {} finally {
2641
+ __in_log_callback__ = false;
2642
+ }
2643
+ }
2638
2644
  }
2639
2645
  function set_remote_log_functions(remote_log_fn) {
2640
2646
  if (remote_log_fn) {