mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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;
|
FeedDAO feedDAO;
|
||||||
|
|
||||||
public void subscribe(Feed feed) {
|
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 hub = feed.getPushHub();
|
||||||
String topic = feed.getPushTopic();
|
String topic = feed.getPushTopic();
|
||||||
String publicUrl = FeedUtils
|
String publicUrl = FeedUtils
|
||||||
|
|||||||
Reference in New Issue
Block a user