Skip to content

Commit

Permalink
Up the time limit for IRC listener bot restart to accomodate for cswiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Niharika29 committed Dec 14, 2016
1 parent 8ccaed9 commit 56c740e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IRCRCListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def irc_rc_listener(site, filter_gen=None):
try:
element = irc_thread.irc_bot.queue.get(timeout=0.1)
except Empty:
if (datetime.now()-irc_thread.irc_bot.last_msg).seconds > 500:
if (datetime.now()-irc_thread.irc_bot.last_msg).seconds > 1000:
pywikibot.output('Missing updates for long time. Restarting....')
try:
irc_thread.stop()
Expand Down

0 comments on commit 56c740e

Please sign in to comment.