Skip to content

Commit

Permalink
fix: cancel mailserver requests on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos authored and jrainville committed Jan 25, 2023
1 parent f899b09 commit 8d75e7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app_service/service/mailservers/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ QtObject:
let receivedData = MailserverChangedSignal(e)
let address = receivedData.address

info "active mailserver changed", node=address
if address == "":
info "removing active mailserver"
else:
info "active mailserver changed", node=address
let data = ActiveMailserverChangedArgs(nodeAddress: address)
self.events.emit(SIGNAL_ACTIVE_MAILSERVER_CHANGED, data)

Expand Down

0 comments on commit 8d75e7d

Please sign in to comment.