Skip to content

Commit 21f073f

Browse files
committed
fixes
1 parent 3545e7e commit 21f073f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/src/main/java/com/mobilenext/devicekit/DisplayUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ object DisplayUtils {
3939
// Get display info
4040
val getDisplayInfoMethod = displayManager.javaClass.getMethod("getDisplayInfo", Int::class.java)
4141
val displayInfo = getDisplayInfoMethod.invoke(displayManager, Display.DEFAULT_DISPLAY)
42+
?: throw IllegalStateException("DisplayInfo is null")
4243

4344
// Extract width, height, DPI, and rotation from DisplayInfo
4445
val logicalWidthField = displayInfo.javaClass.getField("logicalWidth")

app/src/main/java/com/mobilenext/devicekit/MjpegServer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ Connection: close
176176
// Pipe broken - client disconnected
177177
Log.d(TAG, "Output pipe broken, shutting down")
178178
shutdown()
179-
exitProcess(0)
180179
}
181180
}
182181
}

0 commit comments

Comments
 (0)