1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Lets set autocommit in finall catch, just in canse it fails

This commit is contained in:
Zrips 2018-04-10 19:00:26 +03:00
parent 743148bfae
commit 13dd412def
2 changed files with 31 additions and 1 deletions

View File

@ -864,6 +864,11 @@ public abstract class JobsDAO {
e.printStackTrace();
} finally {
close(prest);
try {
conn.setAutoCommit(true);
} catch (SQLException e) {
e.printStackTrace();
}
}
}
@ -1057,6 +1062,11 @@ public abstract class JobsDAO {
} finally {
close(statement);
close(insert);
try {
conns.setAutoCommit(true);
} catch (SQLException e) {
e.printStackTrace();
}
}
}
@ -1522,6 +1532,11 @@ public abstract class JobsDAO {
} finally {
close(prest1);
close(prest2);
try {
conn.setAutoCommit(true);
} catch (SQLException e) {
e.printStackTrace();
}
}
}
@ -1685,6 +1700,11 @@ public abstract class JobsDAO {
close(insert);
close(update);
close(delete);
try {
conn.setAutoCommit(true);
} catch (SQLException e) {
e.printStackTrace();
}
}
}
@ -1796,6 +1816,11 @@ public abstract class JobsDAO {
e.printStackTrace();
} finally {
close(prest2);
try {
conn.setAutoCommit(true);
} catch (SQLException e) {
e.printStackTrace();
}
}
}
@ -1840,6 +1865,11 @@ public abstract class JobsDAO {
e.printStackTrace();
} finally {
close(prest);
try {
conn.setAutoCommit(true);
} catch (SQLException e) {
e.printStackTrace();
}
}
}

View File

@ -1,7 +1,7 @@
name: Jobs
description: Jobs Plugin for the BukkitAPI
main: com.gamingmesh.jobs.Jobs
version: 4.5.1
version: 4.5.2
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
author: phrstbrn
softdepend: [Vault, iConomy, MythicMobs, McMMO, WorldGuard, MyPet]