Skip to content

Commit

Permalink
[eclipse-kanto#98] Ensure graceful exit of the quickstart Python scri…
Browse files Browse the repository at this point in the history
…pt and the How-to guide Python scripts

Formatted the script

Signed-off-by: Daniel Milchev <[email protected]>
  • Loading branch information
daniel-milchev committed Sep 2, 2022
1 parent 0c10276 commit 8997a1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion quickstart/hono_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def on_message(self, event):
event.connection.close()

def on_connection_closed(self, event):
print('[closing]')
print('[connection closed]')
os.kill(os.getpid(), signal.SIGINT)


Expand Down
4 changes: 2 additions & 2 deletions quickstart/hono_commands_fu.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def on_message(self, event):
event.connection.close()

def on_connection_closed(self, event):
print('[closing]')
print('[connection closed]')
os.kill(os.getpid(), signal.SIGINT)


Expand Down Expand Up @@ -134,7 +134,7 @@ def on_message(self, event):
event.connection.close()

def on_connection_closed(self, event):
print('[closing]')
print('[connection closed]')
os.kill(os.getpid(), signal.SIGINT)


Expand Down
3 changes: 1 addition & 2 deletions quickstart/hono_commands_su.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ def on_message(self, event):
event.connection.close()

def on_connection_closed(self, event):
print('[closing]')
print('[connection closed]')
os.kill(os.getpid(), signal.SIGINT)



class CommandsInvoker(MessagingHandler):
def __init__(self, server, address):
super(CommandsInvoker, self).__init__()
Expand Down

0 comments on commit 8997a1d

Please sign in to comment.