mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-24 01:04:21 +01:00
handle clean shutdown
This commit is contained in:
@@ -66,6 +66,10 @@ func (c *ClnPlugin) Start() {
|
||||
c.setupLogging()
|
||||
go c.listenRequests()
|
||||
<-c.done
|
||||
s := c.server
|
||||
if s != nil {
|
||||
<-s.completed
|
||||
}
|
||||
}
|
||||
|
||||
// Stops the cln plugin. Drops any remaining work immediately.
|
||||
|
||||
Reference in New Issue
Block a user