forked from Archives/Athou_commafeed
make sure the feed has been updated in the database so that the callback works
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user