aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-26 04:17:17 +0700
committerGravatar Alexander Alexeev2016-11-26 04:17:17 +0700
commit46a040d6ff07e2581ae461ac60d2abc736cc7c6d (patch)
tree13bd27c1c12b6846e780a54cc87e7a7b17639d0b /juick-xmpp/src/main/java
parent55b09a6a3bc4a21201189d855e140308f05016fb (diff)
status constants
Diffstat (limited to 'juick-xmpp/src/main/java')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java b/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java
index 9617ab56..0b615e40 100644
--- a/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java
+++ b/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java
@@ -24,8 +24,8 @@ public class StatusController {
if (xmpp != null) {
String status = String.format("s2s in: %d, s2s out: %d, cached: %d",
xmpp.getInConnections().size(), xmpp.getOutConnections().size(), xmpp.getOutCache().size());
- return new Status(status);
+ return Status.getStatus(status);
}
- return new Status("Error");
+ return Status.ERROR;
}
}