mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-10 23:53:42 +02:00
Add SocketAuthority.close()
This commit is contained in:
@ -73,6 +73,15 @@ class SocketAuthority {
|
||||
}
|
||||
}
|
||||
|
||||
close(callback) {
|
||||
Logger.info('[SocketAuthority] Shutting down')
|
||||
// This will close all open socket connections, and also close the underlying http server
|
||||
if (this.io)
|
||||
this.io.close(callback)
|
||||
else
|
||||
callback()
|
||||
}
|
||||
|
||||
initialize(Server) {
|
||||
this.Server = Server
|
||||
|
||||
|
Reference in New Issue
Block a user