projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10cec5
)
- Fixed MediaManager::open to not to store invalid handles
author
Marius Tomaschewski
<mt@suse.de>
Thu, 2 Feb 2006 17:26:11 +0000
(17:26 +0000)
committer
Marius Tomaschewski
<mt@suse.de>
Thu, 2 Feb 2006 17:26:11 +0000
(17:26 +0000)
zypp/media/MediaManager.cc
patch
|
blob
|
history
diff --git
a/zypp/media/MediaManager.cc
b/zypp/media/MediaManager.cc
index
b2dff8d
..
c0855ab
100644
(file)
--- a/
zypp/media/MediaManager.cc
+++ b/
zypp/media/MediaManager.cc
@@
-149,12
+149,11
@@
namespace zypp
// create new access handler for it
MediaAccessRef accRef( new MediaAccess());
- MediaId nextId( m_impl->nextMediaId());
-
- m_impl->mediaAccMap[nextId] = accRef;
accRef->open(url, preferred_attach_point);
+ m_impl->mediaAccMap[m_impl->nextMediaId()] = accRef;
+
return nextId;
}