Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
c4c8a356
Commit
c4c8a356
authored
6 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Comments and whitespace only
parent
57a797a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ATxService/AutoTx.cs
+2
-3
2 additions, 3 deletions
ATxService/AutoTx.cs
with
2 additions
and
3 deletions
ATxService/AutoTx.cs
+
2
−
3
View file @
c4c8a356
...
...
@@ -324,13 +324,12 @@ namespace ATxService
// terminate the service process if necessary:
if
(
configInvalid
)
throw
new
Exception
(
"Invalid config, check log file!"
);
// check the clean-shutdown status and send a notification if it was not true,
// now check the clean-shutdown status and send a notification if it was not true,
// then set it to false while the service is running until it is properly
// shut down via the OnStop() method:
if
(
_status
.
CleanShutdown
==
false
)
{
Log
.
Error
(
"WARNING: {0} was not shut down properly last time!\n\nThis could "
+
"indicate the computer has crashed or was forcefully shut off."
,
ServiceName
);
"indicate the computer has crashed or was forcefully shut off."
,
ServiceName
);
}
_status
.
CleanShutdown
=
false
;
}
...
...
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