File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
java/src/main/java/com/genexus Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -135,15 +135,30 @@ protected boolean isRemoteProcedure()
135135 {
136136 return Application .isRemoteProcedure (context , remoteHandle , location );
137137 }
138-
138+ protected boolean batchCursorHolder (){ return false ;}
139+ protected void exitApp ()
140+ {
141+ exitApplication (batchCursorHolder ());
142+ }
143+ /**
144+ * @deprecated use exitApp()
145+ * */
139146 protected void exitApplication ()
147+ {
148+ exitApplication (true );
149+ }
150+ private void exitApplication (boolean flushBuffers )
140151 {
141152 if (dbgInfo != null && Application .realMainProgram == this )
142153 dbgInfo .onExit ();
143- try
144- {
145- Application .getConnectionManager ().flushBuffers (remoteHandle , this );
146- }catch (Exception exception ){ ; }
154+
155+ if (flushBuffers ) {
156+ try {
157+ Application .getConnectionManager ().flushBuffers (remoteHandle , this );
158+ } catch (Exception exception ) {
159+ ;
160+ }
161+ }
147162 if (disconnectUserAtCleanup )
148163 {
149164 try
You can’t perform that action at this time.
0 commit comments