"""
Make sure started controllers can't be started multiple times
"""

include controller.repy

    
if callfunc == 'intialize':
  c = Controller()
  c.start(getmyip(),12345)
  
  try:
    c.start(getmyup(), 12346)
  except ControllerAlreadyStartedError:
    pass
  else:
    print "Controller allowed to be started twice"
