Commit 49a369f0 authored by Robin Obůrka's avatar Robin Obůrka

msgloop: Do not require setup for teardown callback

parent e6e71c62
......@@ -34,8 +34,6 @@ def sn_main(box_name, process, setup=None, teardown=None, argparser=None, args=N
if not socket_recv and not socket_send:
raise LoopError("Neither input nor output socket provided")
if teardown and not setup:
raise LoopError("There is teardown callback without setup")
if not socket_recv and not inspect.isgeneratorfunction(process):
raise LoopError("Generator is expected for output-only box")
......
Markdown is supported
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