fixed bug #8070 - fechando conexões abertas, nova empresa e geração títulos punto venta
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@61270 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f5ad0f61b3
commit
366a9ca4c7
|
@ -15,6 +15,7 @@ import java.io.FileReader;
|
|||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
|
@ -956,6 +957,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
|
||||
}finally{
|
||||
if(myConn != null){
|
||||
try {
|
||||
myConn.close();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue