File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ angular.module('neo4jApp.services')
117
117
if @ getCurrentUser ()
118
118
clearConnectionAuthData ()
119
119
ConnectionStatusService .setConnected no
120
+ ProtocolFactory .getAuthService ().clearConnection ()
120
121
121
122
setNewPassword : (old_passwd , new_passwd ) ->
122
123
that = @
Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ angular.module('neo4jApp.services')
88
88
)
89
89
q .promise
90
90
91
+ clearConnection = ->
92
+ _driver .close () if _driver?
93
+ _driver = null
94
+
91
95
createSession = () ->
92
96
return _driver .session () if _driver
93
97
return no
@@ -394,5 +398,6 @@ angular.module('neo4jApp.services')
394
398
schemaResultToRESTResult indexes, constraints
395
399
constructJmxResult : jmxResultToRESTResult
396
400
constructVersionResult : versionResultToRESTResult
401
+ clearConnection : clearConnection
397
402
}
398
403
]
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ angular.module('neo4jApp.services')
27
27
' $q'
28
28
(Bolt , Settings , $q ) ->
29
29
{
30
+ clearConnection : -> Bolt .clearConnection ()
30
31
getSchema : ->
31
32
q = $q .defer ()
32
33
$q .all ([
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ angular.module('neo4jApp.services')
27
27
' $q'
28
28
(Server , Settings , $q ) ->
29
29
{
30
+ clearConnection : -> angular .noop
30
31
getJmx : (whatToGet = []) ->
31
32
Server .jmx (whatToGet)
32
33
You can’t perform that action at this time.
0 commit comments