Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CouchPotatoServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
CouchPotatoServer
Commits
1c4c6921
Commit
1c4c6921
authored
Dec 1, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Change shutdown event name
parent
77d57f5a
Branches
lpinsivy-clapi-not-export-empty
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
couchpotato/core/_base/_core/main.py
+2
-2
2 additions, 2 deletions
couchpotato/core/_base/_core/main.py
couchpotato/core/plugins/base.py
+1
-1
1 addition, 1 deletion
couchpotato/core/plugins/base.py
with
3 additions
and
3 deletions
couchpotato/core/_base/_core/main.py
+
2
−
2
View file @
1c4c6921
...
@@ -101,7 +101,7 @@ class Core(Plugin):
...
@@ -101,7 +101,7 @@ class Core(Plugin):
self
.
shutdown_started
=
True
self
.
shutdown_started
=
True
fireEvent
(
'
app.shutdown
'
)
fireEvent
(
'
app.
do_
shutdown
'
)
log
.
debug
(
'
Every plugin got shutdown event
'
)
log
.
debug
(
'
Every plugin got shutdown event
'
)
loop
=
True
loop
=
True
...
@@ -177,6 +177,6 @@ class Core(Plugin):
...
@@ -177,6 +177,6 @@ class Core(Plugin):
def
signalHandler
(
self
):
def
signalHandler
(
self
):
def
signal_handler
(
signal
,
frame
):
def
signal_handler
(
signal
,
frame
):
fireEvent
(
'
app.shutdown
'
)
fireEvent
(
'
app.
do_
shutdown
'
)
signal
.
signal
(
signal
.
SIGINT
,
signal_handler
)
signal
.
signal
(
signal
.
SIGINT
,
signal_handler
)
This diff is collapsed.
Click to expand it.
couchpotato/core/plugins/base.py
+
1
−
1
View file @
1c4c6921
...
@@ -35,7 +35,7 @@ class Plugin(object):
...
@@ -35,7 +35,7 @@ class Plugin(object):
http_failed_disabled
=
{}
http_failed_disabled
=
{}
def
registerPlugin
(
self
):
def
registerPlugin
(
self
):
addEvent
(
'
app.shutdown
'
,
self
.
doShutdown
)
addEvent
(
'
app.
do_
shutdown
'
,
self
.
doShutdown
)
addEvent
(
'
plugin.running
'
,
self
.
isRunning
)
addEvent
(
'
plugin.running
'
,
self
.
isRunning
)
def
conf
(
self
,
attr
,
value
=
None
,
default
=
None
):
def
conf
(
self
,
attr
,
value
=
None
,
default
=
None
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment