Skip to content

Commit e2f476f

Browse files
committed
Crashes for real this time!
1 parent 0e04a7d commit e2f476f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: wear-socket/src/main/java/com/github/jrejaud/wear_socket/WearSocket.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,10 @@ public void run() {
107107
((Activity)context).runOnUiThread(new Runnable() {
108108
@Override
109109
public void run() {
110-
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
110+
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
111111
}
112112
});
113-
new Throwable(message);
114-
return;
113+
throw new RuntimeException(message);
115114
}
116115
WearSocket.this.nodeID = nodeID;
117116
nodeFound.release();

0 commit comments

Comments
 (0)