projects
/
xudocci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send connection closed event when a runtime exception occurs.
[xudocci.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
irc
/
Connection.java
diff --git
a/src/main/java/net/pterodactylus/irc/Connection.java
b/src/main/java/net/pterodactylus/irc/Connection.java
index
15dde44
..
b67b8db
100644
(file)
--- a/
src/main/java/net/pterodactylus/irc/Connection.java
+++ b/
src/main/java/net/pterodactylus/irc/Connection.java
@@
-511,6
+511,9
@@
public class Connection extends AbstractExecutionThreadService implements Servic
} catch (IOException ioe1) {
logger.log(Level.WARNING, "I/O error", ioe1);
eventBus.post(new ConnectionClosed(this, ioe1));
} catch (IOException ioe1) {
logger.log(Level.WARNING, "I/O error", ioe1);
eventBus.post(new ConnectionClosed(this, ioe1));
+ } catch (RuntimeException re1) {
+ logger.log(Level.SEVERE, "Runtime error", re1);
+ eventBus.post(new ConnectionClosed(this, re1));
} finally {
established = false;
logger.info("Closing Connection.");
} finally {
established = false;
logger.info("Closing Connection.");