Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore: faulty PR #1

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions asyncua/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,12 @@ def application_uri(self):
def application_uri(self, value):
self.aio_obj.application_uri = value

@syncmethod
def connect(self) -> None:
pass
if not self.tloop.is_alive():
self.tloop = ThreadLoop()
self.tloop.start()
self.close_tloop = True
self.tloop.post(self.aio_obj.connect())

def disconnect(self) -> None:
try:
Expand Down Expand Up @@ -592,9 +595,12 @@ def register_namespace(self, url):
def get_namespace_array(self):
pass

@syncmethod
def start(self):
pass
if not self.tloop.is_alive():
self.tloop = ThreadLoop()
self.tloop.start()
self.close_tloop = True
self.tloop.post(self.aio_obj.start())

def stop(self):
self.tloop.post(self.aio_obj.stop())
Expand Down