Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
c120d293
Commit
c120d293
authored
Nov 24, 2016
by
Francesc Guasch
Browse files
[#61] don't disconnect after methods
parent
b7106c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/VM.pm
View file @
c120d293
...
...
@@ -60,13 +60,10 @@ has 'readonly' => (
#
#
before
'
create_domain
'
=>
\
&_pre_create_domain
;
after
'
create_domain
'
=>
\
&_disconnect
;
before
'
search_domain
'
=>
\
&_connect
;
after
'
search_domain
'
=>
\
&_disconnect
;
before
'
create_volume
'
=>
\
&_connect
;
after
'
create_volume
'
=>
\
&_disconnect
;
#############################################################
#
...
...
@@ -84,11 +81,6 @@ sub _connect {
$self
->
connect
();
}
sub
_disconnect
{
my
$self
=
shift
;
$self
->
disconnect
();
}
sub
_pre_create_domain
{
_check_create_domain
(
@
_
);
_connect
(
@
_
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment