File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -34,30 +34,31 @@ fn main() {
34
34
} ) ;
35
35
} ) ;
36
36
37
- let mail_handle = thread:: Builder :: new ( )
38
- . name ( "mail_server" . to_string ( ) )
39
- . spawn ( || {
40
- println ! ( "Mail Server has been enabled" ) ;
41
- status_upload ( ) ;
42
- println ! ( "Mail Server has been disabled" ) ;
43
- } ) ;
44
-
45
37
if setup_handle
46
38
. expect ( "Unable to join setup handle" )
47
39
. join ( )
48
40
. is_err ( )
49
41
{
50
42
eprintln ! ( "An error occured when tried to join setup handle" ) ;
51
- } else if mail_handle
52
- . expect ( "Unable to join mail handle" )
53
- . join ( )
54
- . is_err ( )
55
- {
56
- eprintln ! ( "An error occured when tried to join mail handle" ) ;
57
43
}
58
44
// Please consider adding `else if` blocks until all handles won't be joined
59
45
else {
60
- println ! ( "All config components are OK, loading the server.." ) ;
46
+ let mail_handle = thread:: Builder :: new ( )
47
+ . name ( "mail_server" . to_string ( ) )
48
+ . spawn ( || {
49
+ println ! ( "Mail Server has been enabled" ) ;
50
+ status_upload ( ) ;
51
+ println ! ( "Mail Server has been disabled" ) ;
52
+ } ) ;
53
+ if mail_handle
54
+ . expect ( "Unable to join mail handle" )
55
+ . join ( )
56
+ . is_err ( )
57
+ {
58
+ eprintln ! ( "An error occured when tried to join mail handle" ) ;
59
+ } else {
60
+ println ! ( "All config components are OK, loading the server.." ) ;
61
+ }
61
62
}
62
63
/*
63
64
MINECRAFT SERVER SUPPORT USING VALENCE
You can’t perform that action at this time.
0 commit comments