Skip to content

Commit 9de4a6e

Browse files
committed
Fix #11
1 parent 3f9bb24 commit 9de4a6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class StaticServer {
8383
kill() {
8484
this.stop();
8585
this.started = false;
86-
AppState.addEventListener('change', this._handleAppStateChange.bind(this));
86+
AppState.removeEventListener('change', this._handleAppStateChange.bind(this));
8787
}
8888

8989
_handleAppStateChange(appState) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-static-server",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"repository": "https://github.com/futurepress/react-native-static-server",
55
"description": "HTTP static file server for React Native",
66
"main": "index.js",

0 commit comments

Comments
 (0)