Nicolas Cannasse 19 years ago
parent
commit
0706d8a2b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/neko/db/Transaction.hx

+ 1 - 1
std/neko/db/Transaction.hx

@@ -29,7 +29,7 @@ import Reflect;
 class Transaction {
 
 	public static function isDeadlock(e : Dynamic) {
-		return Reflect.isObject(e) && Std.is(e.msg,String) && (~/Deadlock found/.match(e.msg) || ~/Lock wait timeout/.match(e.msg));
+		return Std.is(e,String) && (~/Deadlock found/.match(e) || ~/Lock wait timeout/.match(e));
 	}
 
 	private static function runMainLoop(mainFun,logError,count) {