Verified Commit 3a3258bd authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Add delay before setting etherpad content

With this delay the users browser should open and create the pad before
we try to set its content. With etherpad 1.8, setting the content fails
if the pad isn't created first.
parent 7359c31f
......@@ -5,6 +5,7 @@ import subprocess
import shutil
import tempfile
from datetime import datetime
import time
import traceback
from copy import copy
import xmlrpc.client
......@@ -952,7 +953,9 @@ def push_tops_to_calendar_async(protocol_id):
def set_etherpad_content(protocol):
# wait for the users browser to open the etherpad
# and for etherpad to create it, otherwise the import will fail
set_etherpad_content_async.apply_async((,), countdown=10)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment