File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ - (instancetype)init {
15
15
return self;
16
16
}
17
17
18
+ - (void )dealloc {
19
+
20
+ if (_webServer.isRunning == YES ) {
21
+ [_webServer stop ];
22
+ }
23
+ _webServer = nil ;
24
+
25
+ }
26
+
18
27
- (dispatch_queue_t )methodQueue
19
28
{
20
29
return dispatch_queue_create (" com.futurepress.staticserver" , DISPATCH_QUEUE_SERIAL);
@@ -108,7 +117,6 @@ - (dispatch_queue_t)methodQueue
108
117
if (_webServer.isRunning == YES ) {
109
118
110
119
[_webServer stop ];
111
- // _webServer = nil;
112
120
113
121
NSLog (@" StaticServer stopped" );
114
122
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-static-server" ,
3
- "version" : " 0.2.1 " ,
3
+ "version" : " 0.2.2 " ,
4
4
"repository" : " https://github.com/futurepress/react-native-static-server" ,
5
5
"description" : " HTTP static file server for React Native" ,
6
6
"main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments