Interrupt all messaging sessions when the app starts shutting down.

This makes it more likely that connections will be closed cleanly.
However, the interrupt() method is currently ineffective for incoming
sessions as it won't interrupt a blocking read, e.g. when the packet
reader is waiting for a packet.
This commit is contained in:
akwizgran
2014-11-06 08:24:08 +00:00
parent 852a618cb3
commit 1f4d801162
5 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
package org.briarproject.api.event;
/** An event that is broadcast when the app is shutting down. */
public class ShutdownEvent extends Event {
}