Clearing libSession logger when clearing data (seemed to cause crash)

pull/988/head
Morgan Pretty 8 months ago
parent 07cbbbbd94
commit 69de29912c

@ -112,6 +112,7 @@ public struct SessionApp {
using dependencies: Dependencies,
onReset: (() -> ())? = nil
) {
LibSession.clearLoggers()
LibSession.clearMemoryState(using: dependencies)
LibSession.clearSnodeCache()
LibSession.suspendNetworkAccess()

@ -52,6 +52,10 @@ extension LibSession {
})
}
public static func clearLoggers() {
session_clear_loggers()
}
// MARK: - Internal
fileprivate enum LogCategory: String {

Loading…
Cancel
Save