363
367
message = pluginInputReader.readLine();
364
368
PluginDebug.debug(" PIPE: appletviewer read: " + message);
370
if (message == null || message.equals("shutdown")) {
371
synchronized(shuttingDown) {
375
// Close input/output channels to plugin.
376
pluginInputReader.close();
377
pluginOutputWriter.close();
378
} catch (IOException exception) {
379
// Deliberately ignore IOException caused by broken
380
// pipe since plugin may have already detached.
382
AppletSecurityContextManager.dumpStore(0);
383
PluginDebug.debug("APPLETVIEWER: exiting appletviewer");
385
} else if (message.equals("showconsole")) {
387
} else if (message.equals("hideconsole")) {
365
390
} catch (IOException e) {
367
if (message == null || message.equals("shutdown")) {
368
synchronized(shuttingDown) {
372
// Close input/output channels to plugin.
373
pluginInputReader.close();
374
pluginOutputWriter.close();
375
} catch (IOException exception) {
376
// Deliberately ignore IOException caused by broken
377
// pipe since plugin may have already detached.
379
AppletSecurityContextManager.dumpStore(0);
380
PluginDebug.debug("APPLETVIEWER: exiting appletviewer");