mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Fix closing connection twice
This commit is contained in:
parent
fd0c4d734c
commit
3ccb7f164b
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ class SyncWorker {
|
|||
}
|
||||
|
||||
closeConnection() {
|
||||
this._conn.end();
|
||||
if (this._conn) {
|
||||
this._conn.end();
|
||||
}
|
||||
this._conn = null
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue