Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

BUGFIX: Removing infinite loops#4

Open
scotm wants to merge 1 commit into
RaghavSood:masterfrom
scotm:master
Open

BUGFIX: Removing infinite loops#4
scotm wants to merge 1 commit into
RaghavSood:masterfrom
scotm:master

Conversation

@scotm
Copy link
Copy Markdown

@scotm scotm commented Jun 28, 2015

Facebook's thread_info.php now requires a timestamp in the headers. And it must be the same timestamp as the previous thread's last message.

Therefore, I'm adding the previous message's timestamp to the headers - without it, it will loop forever and only retrieve the previous request's data. This will mean it never terminates.

Additionally - I've added a breakpoint in the main loop. If "end_of_history" is in the payload, it terminates. For some reason, matching the string directly no longer works.

…out it, it will loop forever and retrieve the previous request's data.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant