Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
samurai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adam Gausmann
samurai
Commits
ae173c24
Commit
ae173c24
authored
Apr 14, 2017
by
Adam Gausmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ConcurrentModificationException when plugins unload
parent
e74603bf
Pipeline
#7639674
passed with stages
in 18 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
pom.xml
api/pom.xml
+1
-1
pom.xml
pom.xml
+1
-1
pom.xml
runtime/pom.xml
+1
-1
PluginManagerImpl.java
...n/java/ninja/nonemu/samurai/plugin/PluginManagerImpl.java
+6
-3
No files found.
api/pom.xml
View file @
ae173c24
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
samurai
</artifactId>
<groupId>
ninja.nonemu
</groupId>
<version>
1.2
</version>
<version>
1.2
.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
pom.xml
View file @
ae173c24
...
...
@@ -6,7 +6,7 @@
<groupId>
ninja.nonemu
</groupId>
<artifactId>
samurai
</artifactId>
<version>
1.2
</version>
<version>
1.2
.1
</version>
<modules>
<module>
api
</module>
<module>
runtime
</module>
...
...
runtime/pom.xml
View file @
ae173c24
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
samurai
</artifactId>
<groupId>
ninja.nonemu
</groupId>
<version>
1.2
</version>
<version>
1.2
.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
runtime/src/main/java/ninja/nonemu/samurai/plugin/PluginManagerImpl.java
View file @
ae173c24
...
...
@@ -95,13 +95,16 @@ public class PluginManagerImpl implements PluginManager {
public
void
cleanup
()
{
logger
.
trace
(
"Cleaning up plugin manager"
);
plugins
.
keySet
().
iterator
().
forEachRemaining
((
name
)
->
{
String
[]
pluginNames
=
new
String
[
plugins
.
size
()];
plugins
.
keySet
().
toArray
(
pluginNames
);
for
(
String
pluginName
:
pluginNames
)
{
try
{
unregisterPlugin
(
n
ame
);
unregisterPlugin
(
pluginN
ame
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"Plugin threw an exception while cleaning up"
,
e
);
}
}
);
}
}
@Override
...
...
Write
Preview
Markdown
is supported
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