Commit 6fa79877 authored by Administrator's avatar Administrator
Browse files

removing audio level check window when recorder is closed

parent d94725e5
Pipeline #1850 passed with stage
in 25 seconds
...@@ -489,9 +489,10 @@ public class Recorder implements MessageConsumer, Closeable { ...@@ -489,9 +489,10 @@ public class Recorder implements MessageConsumer, Closeable {
out.close(); out.close();
out = null; out = null;
} }
if (file !=null)
TTT.userPrefs.put("last_opened_recording", file.getCanonicalPath()); TTT.userPrefs.put("last_opened_recording", file.getCanonicalPath());
System.out.println("Recorder stop."); TTT.verbose("Recorder stop.");
} }
......
...@@ -490,6 +490,7 @@ public class Player extends JInternalFrame { ...@@ -490,6 +490,7 @@ public class Player extends JInternalFrame {
if (lectureProfile.isRecordEnabled()) { if (lectureProfile.isRecordEnabled()) {
recorder = new Recorder(protocol, lectureProfile); recorder = new Recorder(protocol, lectureProfile);
closeables.add(recorder); closeables.add(recorder);
TTT.debug("Adding recorder to closeables");
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
...@@ -617,10 +618,13 @@ public class Player extends JInternalFrame { ...@@ -617,10 +618,13 @@ public class Player extends JInternalFrame {
public void close() { public void close() {
// close everything // close everything
for (int i = 0; i < closeables.size(); i++)
for (Closeable c : closeables)
try { try {
closeables.get(i).close(); c.close();
} catch (Exception e) {} } catch (Exception e) {
TTT.debug("Exeption while running over closables: "+e.toString());
}
closeables.clear(); closeables.clear();
dispose(); dispose();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment