feat: add real tmux session manager
This commit is contained in:
@@ -112,9 +112,12 @@ export async function startM4Api(options: StartM4ApiOptions = {}): Promise<Start
|
||||
sessionRecovery,
|
||||
sessionManager,
|
||||
async stop() {
|
||||
await sessionManager.shutdown();
|
||||
if (ownedClient) {
|
||||
await dbClient.close();
|
||||
try {
|
||||
await sessionManager.shutdown();
|
||||
} finally {
|
||||
if (ownedClient) {
|
||||
await dbClient.close();
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user