Commit 6fa79877 authored by Dr. Michael Petter's avatar Dr. Michael Petter

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 {
out.close();
out = null;
}
if (file !=null)
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 {
if (lectureProfile.isRecordEnabled()) {
recorder = new Recorder(protocol, lectureProfile);
closeables.add(recorder);
TTT.debug("Adding recorder to closeables");
}
} catch (Exception e) {
e.printStackTrace();
......@@ -617,10 +618,13 @@ public class Player extends JInternalFrame {
public void close() {
// close everything
for (int i = 0; i < closeables.size(); i++)
for (Closeable c : closeables)
try {
closeables.get(i).close();
} catch (Exception e) {}
c.close();
} catch (Exception e) {
TTT.debug("Exeption while running over closables: "+e.toString());
}
closeables.clear();
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