mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Part of fix for #79 - moving deactivate() and notifyCommit() into finally block
This commit is contained in:
1 parent
182e027521
commit
189e0a2ea9
1 file changed
+5
-3
@@ -593,12 +593,14 @@ public class JdbcTransaction implements SpiTransaction {
|
||||
}
|
||||
connection.commit();
|
||||
}
|
||||
// these will not throw an exception
|
||||
deactivate();
|
||||
notifyCommit();
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new RollbackException(e);
|
||||
|
||||
} finally {
|
||||
// these will not throw an exception
|
||||
deactivate();
|
||||
notifyCommit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user