Index: trunk/tools/wmib/Infobot.cs |
— | — | @@ -400,8 +400,8 @@ |
401 | 401 | while (running) |
402 | 402 | { |
403 | 403 | check++; |
404 | | - Thread.Sleep(10); |
405 | | - if (check > 80) |
| 404 | + Thread.Sleep(100); |
| 405 | + if (check > 8) |
406 | 406 | { |
407 | 407 | th.Abort(); |
408 | 408 | irc.Message("Search took more than 800ms try a better regex", Channel); |
Index: trunk/tools/wmib/Core.cs |
— | — | @@ -496,11 +496,15 @@ |
497 | 497 | /// <param name="chan">Channel name</param> |
498 | 498 | public static void handleException(Exception ex, string chan = "") |
499 | 499 | { |
500 | | - if (config.debugchan != null) |
| 500 | + try |
501 | 501 | { |
502 | | - SlowQueue.DeliverMessage("DEBUG Exception: " + ex.Message + " I feel crushed, uh :|", config.debugchan); |
503 | | - } |
504 | | - Program.Log(ex.Message + ex.Source + ex.StackTrace); |
| 502 | + if (config.debugchan != null) |
| 503 | + { |
| 504 | + SlowQueue.DeliverMessage("DEBUG Exception: " + ex.Message + " I feel crushed, uh :|", config.debugchan); |
| 505 | + } |
| 506 | + Program.Log(ex.Message + ex.Source + ex.StackTrace); |
| 507 | + } catch (Exception) // exception happened while we tried to handle another one, ignore that (probably issue with logging) |
| 508 | + { } |
505 | 509 | } |
506 | 510 | |
507 | 511 | /// <summary> |
Index: trunk/tools/wmib/RClogs.cs |
— | — | @@ -460,7 +460,7 @@ |
461 | 461 | } |
462 | 462 | } |
463 | 463 | } |
464 | | - Thread.Sleep(100); |
| 464 | + Thread.Sleep(10); |
465 | 465 | } |
466 | 466 | Thread.Sleep(100); |
467 | 467 | } |
— | — | @@ -473,7 +473,6 @@ |
474 | 474 | Console.WriteLine(x.Message); |
475 | 475 | } |
476 | 476 | } |
477 | | - |
478 | 477 | } |
479 | 478 | catch (Exception x) |
480 | 479 | { |