Repository: qpid-proton Updated Branches: refs/heads/master 45d59f762 -> 55d9f82fe
PROTON-1139 using selectable() instead of get_event_trigger() Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/55d9f82f Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/55d9f82f Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/55d9f82f Branch: refs/heads/master Commit: 55d9f82fea5e55ce986d5eeee70f50258a0dc41e Parents: 45d59f7 Author: Jakub Scholz <[email protected]> Authored: Fri Feb 19 10:40:32 2016 -0500 Committer: Jakub Scholz <[email protected]> Committed: Fri Feb 19 10:40:32 2016 -0500 ---------------------------------------------------------------------- examples/python/tx_recv_interactive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/55d9f82f/examples/python/tx_recv_interactive.py ---------------------------------------------------------------------- diff --git a/examples/python/tx_recv_interactive.py b/examples/python/tx_recv_interactive.py index 2c1d9a7..c38f651 100755 --- a/examples/python/tx_recv_interactive.py +++ b/examples/python/tx_recv_interactive.py @@ -21,7 +21,7 @@ from __future__ import print_function import sys import threading -from proton.reactor import ApplicationEvent, Container +from proton.reactor import ApplicationEvent, Container, EventInjector from proton.handlers import MessagingHandler, TransactionHandler class TxRecv(MessagingHandler, TransactionHandler): @@ -67,7 +67,8 @@ class TxRecv(MessagingHandler, TransactionHandler): try: reactor = Container(TxRecv()) - events = reactor.get_event_trigger() + events = EventInjector() + reactor.selectable(events) thread = threading.Thread(target=reactor.run) thread.daemon=True thread.start() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
