From 92a44432dd4d3110bc33cbfe00fc7c91c2611027 Mon Sep 17 00:00:00 2001 From: Daghan Demirci Date: Fri, 6 Mar 2020 11:46:16 +0300 Subject: [PATCH] callback exception catch. --- Source/Timer.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Timer.cs b/Source/Timer.cs index 2729b54..58076a8 100644 --- a/Source/Timer.cs +++ b/Source/Timer.cs @@ -379,7 +379,14 @@ private void Update() if (this._onComplete != null) { - this._onComplete(); + try + { + this._onComplete(); + } + catch + { + // how to handle exception is left for the author + } } if (this.isLooped)