Skip to content

Commit

Permalink
event_loop arg is once not continuous
Browse files Browse the repository at this point in the history
  • Loading branch information
Gjum committed Jan 31, 2016
1 parent 98ba074 commit ac4799e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spockbot/plugins/core/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def __init__(self, ploader, settings):
signal.signal(signal.SIGINT, self.kill)
signal.signal(signal.SIGTERM, self.kill)

def event_loop(self, continuous=True):
if continuous:
self.run_continuous()
else:
def event_loop(self, once=False):
if once:
self.run_once()
else:
self.run_continuous()

def run_continuous(self):
if not self.has_run and not self.kill_event:
Expand Down

0 comments on commit ac4799e

Please sign in to comment.