# HG changeset patch # User Daniele Nicolodi # Date 1323194847 -3600 # Node ID ca0b8d4dcdb6d8f907e1932b74f8d455413429d6 # Parent a59cdb8aaf31da8f3f9c4eced843df2b03f152c4 Fix diff -r a59cdb8aaf31 -r ca0b8d4dcdb6 m-toolbox/classes/@ltpda_uo/submit.m --- a/m-toolbox/classes/@ltpda_uo/submit.m Tue Dec 06 19:07:22 2011 +0100 +++ b/m-toolbox/classes/@ltpda_uo/submit.m Tue Dec 06 19:07:27 2011 +0100 @@ -286,7 +286,10 @@ catch ex utils.helper.msg(msg.IMPORTANT, 'submission error. no object submitted') - c.close() + % close the connection if we own it + if isempty(find(pls, 'conn')) + c.close(); + end rethrow(ex) end