make sure the feed has been updated in the database so that the callback works

This commit is contained in:
Athou
2013-06-08 16:55:22 +02:00
parent ec163da9db
commit d639f944bf

View File

@@ -36,6 +36,15 @@ public class SubscriptionHandler {
FeedDAO feedDAO;
public void subscribe(Feed feed) {
try {
// make sure the feed has been updated in the database so that the
// callback works
Thread.sleep(30000);
} catch (InterruptedException e1) {
// do nothing
}
String hub = feed.getPushHub();
String topic = feed.getPushTopic();
String publicUrl = FeedUtils